Record Class AcmeChallengeProvider.Context
java.lang.Object
java.lang.Record
zeroecho.pki.server.spi.v2.AcmeChallengeProvider.Context
- Record Components:
directoryId- stable directory identity- stable authorization identityidentifier- identifier being authorizedchallengeType- challenge mechanism to validatetoken- canonical ACME challenge tokenexpectedKeyAuthorization- expected account-bound key authorizationattempt- positive validation-attempt numbervalidationTime- authoritative start time for this attemptdeadline- 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 Summary
ConstructorsConstructorDescriptionContext(String directoryId, String authorizationId, AcmeChallengeProvider.Identifier identifier, AcmeChallengeProvider.ChallengeType challengeType, String token, String expectedKeyAuthorization, int attempt, Instant validationTime, Instant deadline) Validates complete attempt binding. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.Returns the value of theauthorizationIdrecord component.Returns the value of thechallengeTyperecord component.deadline()Returns the value of thedeadlinerecord component.Returns the value of thedirectoryIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedKeyAuthorizationrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.token()Returns the value of thetokenrecord component.toString()Returns a redacted diagnostic without challenge credentials.Returns the value of thevalidationTimerecord component.
-
Constructor Details
-
Context
public Context(String directoryId, String authorizationId, AcmeChallengeProvider.Identifier identifier, AcmeChallengeProvider.ChallengeType challengeType, String token, String expectedKeyAuthorization, int attempt, Instant validationTime, Instant deadline) Validates complete attempt binding.
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
directoryId
Returns the value of thedirectoryIdrecord component.- Returns:
- the value of the
directoryIdrecord component
-
authorizationId
Returns the value of theauthorizationIdrecord component.- Returns:
- the value of the
authorizationIdrecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
challengeType
Returns the value of thechallengeTyperecord component.- Returns:
- the value of the
challengeTyperecord component
-
token
-
expectedKeyAuthorization
Returns the value of theexpectedKeyAuthorizationrecord component.- Returns:
- the value of the
expectedKeyAuthorizationrecord component
-
attempt
-
validationTime
Returns the value of thevalidationTimerecord component.- Returns:
- the value of the
validationTimerecord component
-
deadline
-