Record Class CmpTransaction

java.lang.Object
java.lang.Record
zeroecho.pki.server.enrollment.CmpTransaction
Record Components:
id - stable realm, endpoint and transaction identity
revision - positive compare-and-set revision
frozen - immutable authenticated original request coordinates
enrollmentId - atomically attached enrollment, absent before admission or for non-issuance
response - 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.
  • Constructor Details

  • Method Details

    • commitment

      public String commitment()
      Returns the complete versioned manifest commitment.
      Returns:
      the complete versioned manifest commitment
    • toString

      public String toString()
      Returns a redacted description.
      Specified by:
      toString in class Record
      Returns:
      a redacted description
    • 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
    • frozen

      public CmpTransaction.Frozen frozen()
      Returns the value of the frozen record component.
      Returns:
      the value of the frozen record component
    • enrollmentId

      public Optional<String> enrollmentId()
      Returns the value of the enrollmentId record component.
      Returns:
      the value of the enrollmentId record component
    • response

      public Optional<CmpTransaction.Response> response()
      Returns the value of the response record component.
      Returns:
      the value of the response record component