Record Class EnrollmentTransaction
java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentTransaction
- Record Components:
id- stable replay identity, independent of endpoint revisionrevision- monotonic positive mutation revisionintent- immutable admitted request and policy snapshotstate- durable workflow statedecisions- verified administrative decisionsreceipt- prepared signing receipt persisted before acceptancecredentialId- completed credential, present only for ISSUED
public record EnrollmentTransaction(String id, long revision, EnrollmentTransaction.Intent intent, EnrollmentTransaction.State state, List<EnrollmentTransaction.Decision> decisions, Optional<SigningAcceptanceReceipt> receipt, Optional<PkiId> credentialId)
extends Record
Immutable durable enrollment state. Original request and private material remain
in their domain stores; this record contains only bounded references and policy
commitments. Diagnostic rendering deliberately excludes identity information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordFrozen client-encrypted key delivery, included in issuance and approval commitments.static final recordOne verified independent administrative decision.static final recordFrozen verified original request reference and complete issuance selection.static enumExisting enrollment operation kinds with separate replay domains.static enumProtocol family determines admission and recovery binding semantics.static final recordAuthenticated protocol actor, distinct from an administrative principal.static final recordFrozen endpoint identity.static enumDurable states; uncertain or accepted work never silently expires. -
Constructor Summary
ConstructorsConstructorDescriptionEnrollmentTransaction(String id, long revision, EnrollmentTransaction.Intent intent, EnrollmentTransaction.State state, List<EnrollmentTransaction.Decision> decisions, Optional<SigningAcceptanceReceipt> receipt, Optional<PkiId> credentialId) Validates state-dependent references and unique principal/key votes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the complete versioned persisted record commitment.Returns the value of thecredentialIdrecord component.Returns the value of thedecisionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.intent()Returns the value of theintentrecord component.Returns the complete immutable intent commitment used by issuance and approval.receipt()Returns the value of thereceiptrecord component.longrevision()Returns the value of therevisionrecord component.state()Returns the value of thestaterecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
EnrollmentTransaction
public EnrollmentTransaction(String id, long revision, EnrollmentTransaction.Intent intent, EnrollmentTransaction.State state, List<EnrollmentTransaction.Decision> decisions, Optional<SigningAcceptanceReceipt> receipt, Optional<PkiId> credentialId) Validates state-dependent references and unique principal/key votes.
-
-
Method Details
-
intentCommitment
Returns the complete immutable intent commitment used by issuance and approval.- Returns:
- SHA-256 intent commitment
-
commitment
Returns the complete versioned persisted record commitment.- Returns:
- SHA-256 record 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
-
intent
-
state
-
decisions
-
receipt
-
credentialId
Returns the value of thecredentialIdrecord component.- Returns:
- the value of the
credentialIdrecord component
-