Record Class EnrollmentTransaction

java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentTransaction
Record Components:
id - stable replay identity, independent of endpoint revision
revision - monotonic positive mutation revision
intent - immutable admitted request and policy snapshot
state - durable workflow state
decisions - verified administrative decisions
receipt - prepared signing receipt persisted before acceptance
credentialId - 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.
  • Constructor Details

  • Method Details

    • intentCommitment

      public String intentCommitment()
      Returns the complete immutable intent commitment used by issuance and approval.
      Returns:
      SHA-256 intent commitment
    • commitment

      public String commitment()
      Returns the complete versioned persisted record commitment.
      Returns:
      SHA-256 record commitment
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • revision

      public long revision()
      Returns the value of the revision record component.
      Returns:
      the value of the revision record component
    • intent

      Returns the value of the intent record component.
      Returns:
      the value of the intent record component
    • state

      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • decisions

      public List<EnrollmentTransaction.Decision> decisions()
      Returns the value of the decisions record component.
      Returns:
      the value of the decisions record component
    • receipt

      Returns the value of the receipt record component.
      Returns:
      the value of the receipt record component
    • credentialId

      public Optional<PkiId> credentialId()
      Returns the value of the credentialId record component.
      Returns:
      the value of the credentialId record component