Record Class AcmeState.Order

java.lang.Object
java.lang.Record
zeroecho.pki.server.acme.AcmeState.Order
Record Components:
orderId - stable order identifier
accountId - owning account identifier
directoryId - owning directory identifier
directoryRevision - frozen directory revision
directoryPolicyCommitment - frozen directory-policy commitment
authorityId - exact logical authority
profile - frozen certificate profile reference
issuerId - exact issuer generation
issuancePathId - exact issuance chain path
issuancePathCommitment - expected chain-path commitment
identifiers - distinct ordered requested identifiers
notBefore - optional requested validity start
notAfter - optional requested validity end, present with notBefore
status - order lifecycle state
authorizationIds - authorization identifiers corresponding to requested identifiers
credentialId - issued credential identifier, present exactly for a valid order
issuanceCommitment - optional frozen issuance-input commitment
signingOperationId - optional durable signing operation identifier
createdAt - server-authoritative creation time
expiresAt - order expiration time
commitment - commitment to the complete order record
Enclosing class:
AcmeState

public static record AcmeState.Order(String orderId, String accountId, String directoryId, int directoryRevision, String directoryPolicyCommitment, PkiId authorityId, CertificateProfileRef profile, PkiId issuerId, PkiId issuancePathId, String issuancePathCommitment, List<AcmeState.Identifier> identifiers, Optional<Instant> notBefore, Optional<Instant> notAfter, AcmeState.OrderStatus status, List<String> authorizationIds, Optional<PkiId> credentialId, Optional<String> issuanceCommitment, Optional<PkiId> signingOperationId, Instant createdAt, Instant expiresAt, String commitment) extends Record
Durable ACME order frozen to one directory revision and issuance selection.
  • Constructor Details

  • Method Details

    • toString

      public final 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.
    • orderId

      public String orderId()
      Returns the value of the orderId record component.
      Returns:
      the value of the orderId record component
    • accountId

      public String accountId()
      Returns the value of the accountId record component.
      Returns:
      the value of the accountId record component
    • directoryId

      public String directoryId()
      Returns the value of the directoryId record component.
      Returns:
      the value of the directoryId record component
    • directoryRevision

      public int directoryRevision()
      Returns the value of the directoryRevision record component.
      Returns:
      the value of the directoryRevision record component
    • directoryPolicyCommitment

      public String directoryPolicyCommitment()
      Returns the value of the directoryPolicyCommitment record component.
      Returns:
      the value of the directoryPolicyCommitment record component
    • authorityId

      public PkiId authorityId()
      Returns the value of the authorityId record component.
      Returns:
      the value of the authorityId record component
    • profile

      public CertificateProfileRef profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component
    • issuerId

      public PkiId issuerId()
      Returns the value of the issuerId record component.
      Returns:
      the value of the issuerId record component
    • issuancePathId

      public PkiId issuancePathId()
      Returns the value of the issuancePathId record component.
      Returns:
      the value of the issuancePathId record component
    • issuancePathCommitment

      public String issuancePathCommitment()
      Returns the value of the issuancePathCommitment record component.
      Returns:
      the value of the issuancePathCommitment record component
    • identifiers

      public List<AcmeState.Identifier> identifiers()
      Returns the value of the identifiers record component.
      Returns:
      the value of the identifiers record component
    • notBefore

      public Optional<Instant> notBefore()
      Returns the value of the notBefore record component.
      Returns:
      the value of the notBefore record component
    • notAfter

      public Optional<Instant> notAfter()
      Returns the value of the notAfter record component.
      Returns:
      the value of the notAfter record component
    • status

      public AcmeState.OrderStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • authorizationIds

      public List<String> authorizationIds()
      Returns the value of the authorizationIds record component.
      Returns:
      the value of the authorizationIds record component
    • credentialId

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

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

      public Optional<PkiId> signingOperationId()
      Returns the value of the signingOperationId record component.
      Returns:
      the value of the signingOperationId record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • expiresAt

      public Instant expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • commitment

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