Record Class AcmeChallengeProvider.Context

java.lang.Object
java.lang.Record
zeroecho.pki.server.spi.v2.AcmeChallengeProvider.Context
Record Components:
directoryId - stable directory identity
authorizationId - stable authorization identity
identifier - identifier being authorized
challengeType - challenge mechanism to validate
token - canonical ACME challenge token
expectedKeyAuthorization - expected account-bound key authorization
attempt - positive validation-attempt number
validationTime - authoritative start time for this attempt
deadline - exclusive deadline for the bounded attempt
Enclosing interface:
AcmeChallengeProvider

public static record AcmeChallengeProvider.Context(String directoryId, String authorizationId, AcmeChallengeProvider.Identifier identifier, AcmeChallengeProvider.ChallengeType challengeType, String token, String expectedKeyAuthorization, int attempt, Instant validationTime, Instant deadline) extends Record
Exact immutable challenge input; values are sensitive and must never be logged.
Since:
1.0
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Returns a redacted diagnostic without challenge credentials.
      Specified by:
      toString in class Record
    • 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.
    • directoryId

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

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

      public AcmeChallengeProvider.Identifier identifier()
      Returns the value of the identifier record component.
      Returns:
      the value of the identifier record component
    • challengeType

      public AcmeChallengeProvider.ChallengeType challengeType()
      Returns the value of the challengeType record component.
      Returns:
      the value of the challengeType record component
    • token

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

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

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

      public Instant validationTime()
      Returns the value of the validationTime record component.
      Returns:
      the value of the validationTime record component
    • deadline

      public Instant deadline()
      Returns the value of the deadline record component.
      Returns:
      the value of the deadline record component