Record Class CmpTransaction.Response
java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.CmpTransaction.Response
- Record Components:
requestSha256- exact authenticated triggering wire requestresponseSha256- exact complete protected responselength- complete response length in bytessenderNonce- lowercase hexadecimal response nonce, 16 to 32 bytesrecipientNonce- lowercase hexadecimal triggering request nonce, 16 to 32 bytesconfirmationDeadline- explicit certificate confirmation deadline, if awaiting confirmationconfirmation- durable protocol confirmation status and final verdictterminal- 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 Summary
ConstructorsConstructorDescriptionResponse(String requestSha256, String responseSha256, int length, String senderNonce, String recipientNonce, Optional<Instant> confirmationDeadline, CmpTransaction.Confirmation confirmation, boolean terminal) Validates bounded metadata without exposing wire bytes in diagnostics. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfirmationrecord component.Returns the value of theconfirmationDeadlinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.Returns the value of therecipientNoncerecord component.Returns the value of therequestSha256record component.Returns the value of theresponseSha256record component.Returns the value of thesenderNoncerecord component.booleanterminal()Returns the value of theterminalrecord component.toString()Returns a redacted description.
-
Constructor Details
-
Response
-
-
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. -
requestSha256
Returns the value of therequestSha256record component.- Returns:
- the value of the
requestSha256record component
-
responseSha256
Returns the value of theresponseSha256record component.- Returns:
- the value of the
responseSha256record component
-
length
-
senderNonce
Returns the value of thesenderNoncerecord component.- Returns:
- the value of the
senderNoncerecord component
-
recipientNonce
Returns the value of therecipientNoncerecord component.- Returns:
- the value of the
recipientNoncerecord component
-
confirmationDeadline
Returns the value of theconfirmationDeadlinerecord component.- Returns:
- the value of the
confirmationDeadlinerecord component
-
confirmation
Returns the value of theconfirmationrecord component.- Returns:
- the value of the
confirmationrecord component
-
terminal
-