Record Class AcmeState.Challenge
java.lang.Object
java.lang.Record
zeroecho.pki.server.acme.AcmeState.Challenge
- Record Components:
challengeId- stable challenge identifier- owning authorization identifiertype- challenge typetoken- unpredictable ACME challenge tokenstatus- challenge lifecycle stateproviderId- selected validator providerattempt- nonnegative attempt numberfailureCode- optional stable safe failure classificationevidenceId- validator evidence identifier, present exactly when validcreatedAt- server-authoritative creation timeupdatedAt- server-authoritative last-update timecommitment- 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 Summary
ConstructorsConstructorDescriptionChallenge(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) Validates token, provider, monotonic attempt and state. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.Returns the value of theauthorizationIdrecord component.Returns the value of thechallengeIdrecord component.Returns the value of thecommitmentrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevidenceIdrecord component.Returns the value of thefailureCoderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theproviderIdrecord component.status()Returns the value of thestatusrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theupdatedAtrecord component.
-
Constructor Details
-
Challenge
public 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) Validates token, provider, monotonic attempt and state.
-
-
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. -
challengeId
Returns the value of thechallengeIdrecord component.- Returns:
- the value of the
challengeIdrecord component
-
authorizationId
Returns the value of theauthorizationIdrecord component.- Returns:
- the value of the
authorizationIdrecord component
-
type
-
token
-
status
-
providerId
Returns the value of theproviderIdrecord component.- Returns:
- the value of the
providerIdrecord component
-
attempt
-
failureCode
Returns the value of thefailureCoderecord component.- Returns:
- the value of the
failureCoderecord component
-
evidenceId
Returns the value of theevidenceIdrecord component.- Returns:
- the value of the
evidenceIdrecord component
-
createdAt
-
updatedAt
-
commitment
Returns the value of thecommitmentrecord component.- Returns:
- the value of the
commitmentrecord component
-