Record Class NuggetControl.Confirmation
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetControl.Confirmation
- Record Components:
operationId- operation identifier bound to the challengechallenge- challenge text to submit on the confirming requestexpiresAt- absolute expiration timestampaction- action bound to this challengenuggetId- nugget id bound to this challengeruntimeId- runtime id bound to this challengegeneration- runtime generation bound to this challengecallerId- caller principal or safe caller id bound to this challengestate- state observed when the challenge was issued
- Enclosing class:
NuggetControl
public static record NuggetControl.Confirmation(String operationId, String challenge, Instant expiresAt, NuggetControl.Action action, String nuggetId, String runtimeId, long generation, String callerId, NuggetState state)
extends Record
Server-issued confirmation challenge metadata.
The challenge value is intentionally available only through the accessor for the direct caller that must resubmit it. String rendering is redacted because confirmations are credentials.
-
Constructor Summary
ConstructorsConstructorDescriptionConfirmation(String operationId, String challenge, Instant expiresAt, NuggetControl.Action action, String nuggetId, String runtimeId, long generation, String callerId, NuggetState state) Creates immutable confirmation metadata. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.callerId()Returns the value of thecallerIdrecord component.Returns the value of thechallengerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.longReturns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.nuggetId()Returns the value of thenuggetIdrecord component.Returns the value of theoperationIdrecord component.Returns the value of theruntimeIdrecord component.state()Returns the value of thestaterecord component.toString()
-
Constructor Details
-
Confirmation
public Confirmation(String operationId, String challenge, Instant expiresAt, NuggetControl.Action action, String nuggetId, String runtimeId, long generation, String callerId, NuggetState state) Creates immutable confirmation metadata.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
challenge
-
expiresAt
-
action
-
nuggetId
-
runtimeId
-
generation
public long generation()Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-
callerId
-
state
-