Record Class CmpTransaction
java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.CmpTransaction
- Record Components:
id- stable realm, endpoint and transaction identityrevision- positive compare-and-set revisionfrozen- immutable authenticated original request coordinatesenrollmentId- atomically attached enrollment, absent before admission or for non-issuanceresponse- latest durably published response metadata
public record CmpTransaction(String id, long revision, CmpTransaction.Frozen frozen, Optional<String> enrollmentId, Optional<CmpTransaction.Response> response)
extends Record
Immutable CMP wire continuation, independent of signing acceptance. An unlinked
reservation contains no domain request reference and may survive a crash before
admission. Only the coordinator writes records or accounts for their capacity.
This value asserts no authentication or authorization.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDurable protocol confirmation, independent of domain credential confirmation.static final recordAuthenticated immutable reservation.static final recordMetadata committed atomically with every fixed response slot. -
Constructor Summary
ConstructorsConstructorDescriptionCmpTransaction(String id, long revision, CmpTransaction.Frozen frozen, Optional<String> enrollmentId, Optional<CmpTransaction.Response> response) Validates identity, state and allocation bounds without trusting persisted data. -
Method Summary
Modifier and TypeMethodDescriptionReturns the complete versioned manifest commitment.Returns the value of theenrollmentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.frozen()Returns the value of thefrozenrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.response()Returns the value of theresponserecord component.longrevision()Returns the value of therevisionrecord component.toString()Returns a redacted description.
-
Constructor Details
-
CmpTransaction
public CmpTransaction(String id, long revision, CmpTransaction.Frozen frozen, Optional<String> enrollmentId, Optional<CmpTransaction.Response> response) Validates identity, state and allocation bounds without trusting persisted data.
-
-
Method Details
-
commitment
Returns the complete versioned manifest commitment.- Returns:
- the complete versioned manifest commitment
-
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. -
id
-
revision
-
frozen
-
enrollmentId
Returns the value of theenrollmentIdrecord component.- Returns:
- the value of the
enrollmentIdrecord component
-
response
-