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 challenge
challenge - challenge text to submit on the confirming request
expiresAt - absolute expiration timestamp
action - action bound to this challenge
nuggetId - nugget id bound to this challenge
runtimeId - runtime id bound to this challenge
generation - runtime generation bound to this challenge
callerId - caller principal or safe caller id bound to this challenge
state - 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 Details

  • Method Details

    • toString

      public String toString()
      Specified by:
      toString in class Record
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • operationId

      public String operationId()
      Returns the value of the operationId record component.
      Returns:
      the value of the operationId record component
    • challenge

      public String challenge()
      Returns the value of the challenge record component.
      Returns:
      the value of the challenge record component
    • expiresAt

      public Instant expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • action

      public NuggetControl.Action action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • nuggetId

      public String nuggetId()
      Returns the value of the nuggetId record component.
      Returns:
      the value of the nuggetId record component
    • runtimeId

      public String runtimeId()
      Returns the value of the runtimeId record component.
      Returns:
      the value of the runtimeId record component
    • generation

      public long generation()
      Returns the value of the generation record component.
      Returns:
      the value of the generation record component
    • callerId

      public String callerId()
      Returns the value of the callerId record component.
      Returns:
      the value of the callerId record component
    • state

      public NuggetState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component