Record Class AcmeState.AuthorizationEvidence

java.lang.Object
java.lang.Record
zeroecho.pki.server.acme.AcmeState.AuthorizationEvidence
Record Components:
evidenceId - stable evidence identifier
authorizationId - authorized identifier record
providerId - validator provider identifier
challengeType - validated challenge type
identifier - exact validated identifier
accountKeyCommitment - account-key commitment used in validation
keyAuthorizationCommitment - derived key-authorization commitment
directoryPolicyCommitment - frozen directory-policy commitment
attempt - positive challenge attempt
validatedAt - server-authoritative validation time
expiresAt - evidence expiration time
result - validator result
failureCode - safe failure classification, present exactly when invalid
commitment - commitment to the complete evidence record
Enclosing class:
AcmeState

public static record AcmeState.AuthorizationEvidence(String evidenceId, String authorizationId, String providerId, AcmeState.ChallengeType challengeType, AcmeState.Identifier identifier, String accountKeyCommitment, String keyAuthorizationCommitment, String directoryPolicyCommitment, int attempt, Instant validatedAt, Instant expiresAt, AcmeState.EvidenceResult result, Optional<String> failureCode, String commitment) extends Record
Immutable validator evidence; no control operation may construct it.
  • 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.
    • evidenceId

      public String evidenceId()
      Returns the value of the evidenceId record component.
      Returns:
      the value of the evidenceId record component
    • authorizationId

      public String authorizationId()
      Returns the value of the authorizationId record component.
      Returns:
      the value of the authorizationId record component
    • providerId

      public String providerId()
      Returns the value of the providerId record component.
      Returns:
      the value of the providerId record component
    • challengeType

      public AcmeState.ChallengeType challengeType()
      Returns the value of the challengeType record component.
      Returns:
      the value of the challengeType record component
    • identifier

      public AcmeState.Identifier identifier()
      Returns the value of the identifier record component.
      Returns:
      the value of the identifier record component
    • accountKeyCommitment

      public String accountKeyCommitment()
      Returns the value of the accountKeyCommitment record component.
      Returns:
      the value of the accountKeyCommitment record component
    • keyAuthorizationCommitment

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

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

      public int attempt()
      Returns the value of the attempt record component.
      Returns:
      the value of the attempt record component
    • validatedAt

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

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

      public AcmeState.EvidenceResult result()
      Returns the value of the result record component.
      Returns:
      the value of the result record component
    • failureCode

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

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