Record Class AcmeState.Challenge

java.lang.Object
java.lang.Record
zeroecho.pki.server.acme.AcmeState.Challenge
Record Components:
challengeId - stable challenge identifier
authorizationId - owning authorization identifier
type - challenge type
token - unpredictable ACME challenge token
status - challenge lifecycle state
providerId - selected validator provider
attempt - nonnegative attempt number
failureCode - optional stable safe failure classification
evidenceId - validator evidence identifier, present exactly when valid
createdAt - server-authoritative creation time
updatedAt - server-authoritative last-update time
commitment - commitment to the complete challenge record
Enclosing class:
AcmeState

public static record AcmeState.Challenge(String challengeId, String authorizationId, AcmeState.ChallengeType type, String token, AcmeState.ChallengeStatus status, String providerId, int attempt, Optional<String> failureCode, Optional<String> evidenceId, Instant createdAt, Instant updatedAt, String commitment) extends Record
Durable explicitly triggered challenge attempt.
  • 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.
    • challengeId

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

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

      public AcmeState.ChallengeType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • token

      public String token()
      Returns the value of the token record component.
      Returns:
      the value of the token record component
    • status

      public AcmeState.ChallengeStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • providerId

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

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

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

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

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

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

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