Record Class CmpTransaction.Response

java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.CmpTransaction.Response
Record Components:
requestSha256 - exact authenticated triggering wire request
responseSha256 - exact complete protected response
length - complete response length in bytes
senderNonce - lowercase hexadecimal response nonce, 16 to 32 bytes
recipientNonce - lowercase hexadecimal triggering request nonce, 16 to 32 bytes
confirmationDeadline - explicit certificate confirmation deadline, if awaiting confirmation
confirmation - durable protocol confirmation status and final verdict
terminal - whether further state changes are forbidden
Enclosing class:
CmpTransaction

public static record CmpTransaction.Response(String requestSha256, String responseSha256, int length, String senderNonce, String recipientNonce, Optional<Instant> confirmationDeadline, CmpTransaction.Confirmation confirmation, boolean terminal) extends Record
Metadata committed atomically with every fixed response slot.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Returns a redacted description.
      Specified by:
      toString in class Record
      Returns:
      a redacted description
    • 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.
    • requestSha256

      public String requestSha256()
      Returns the value of the requestSha256 record component.
      Returns:
      the value of the requestSha256 record component
    • responseSha256

      public String responseSha256()
      Returns the value of the responseSha256 record component.
      Returns:
      the value of the responseSha256 record component
    • length

      public int length()
      Returns the value of the length record component.
      Returns:
      the value of the length record component
    • senderNonce

      public String senderNonce()
      Returns the value of the senderNonce record component.
      Returns:
      the value of the senderNonce record component
    • recipientNonce

      public String recipientNonce()
      Returns the value of the recipientNonce record component.
      Returns:
      the value of the recipientNonce record component
    • confirmationDeadline

      public Optional<Instant> confirmationDeadline()
      Returns the value of the confirmationDeadline record component.
      Returns:
      the value of the confirmationDeadline record component
    • confirmation

      public CmpTransaction.Confirmation confirmation()
      Returns the value of the confirmation record component.
      Returns:
      the value of the confirmation record component
    • terminal

      public boolean terminal()
      Returns the value of the terminal record component.
      Returns:
      the value of the terminal record component