Record Class EnrollmentTransaction.Source

java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.EnrollmentTransaction.Source
Record Components:
protocol - wire protocol
label - stable configured endpoint label or ACME directory alias
recordId - exact persisted endpoint/directory identity
revision - positive revision
commitment - complete endpoint record commitment
enrollmentProfileId - explicit enrollment policy identity
enrollmentCommitment - complete enrollment policy commitment
credentialId - selected immutable protocol credential set, where required
Enclosing class:
EnrollmentTransaction

public static record EnrollmentTransaction.Source(EnrollmentTransaction.Protocol protocol, String label, String recordId, long revision, String commitment, String enrollmentProfileId, String enrollmentCommitment, Optional<String> credentialId) extends Record
Frozen endpoint identity. The replay namespace uses label; recordId and revision are immutable admission preconditions, never replay-key inputs.
  • Constructor Details

  • Method Details

    • 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.
    • protocol

      public EnrollmentTransaction.Protocol protocol()
      Returns the value of the protocol record component.
      Returns:
      the value of the protocol record component
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • recordId

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

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

      public String commitment()
      Returns the value of the commitment record component.
      Returns:
      the value of the commitment record component
    • enrollmentProfileId

      public String enrollmentProfileId()
      Returns the value of the enrollmentProfileId record component.
      Returns:
      the value of the enrollmentProfileId record component
    • enrollmentCommitment

      public String enrollmentCommitment()
      Returns the value of the enrollmentCommitment record component.
      Returns:
      the value of the enrollmentCommitment record component
    • credentialId

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