Record Class AcmeState.AuthorizationEvidence
java.lang.Object
java.lang.Record
zeroecho.pki.server.acme.AcmeState.AuthorizationEvidence
- Record Components:
evidenceId- stable evidence identifier- authorized identifier recordproviderId- validator provider identifierchallengeType- validated challenge typeidentifier- exact validated identifieraccountKeyCommitment- account-key commitment used in validationkeyAuthorizationCommitment- derived key-authorization commitmentdirectoryPolicyCommitment- frozen directory-policy commitmentattempt- positive challenge attemptvalidatedAt- server-authoritative validation timeexpiresAt- evidence expiration timeresult- validator resultfailureCode- safe failure classification, present exactly when invalidcommitment- 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 Summary
ConstructorsConstructorDescriptionAuthorizationEvidence(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) Validates complete authorization-evidence binding. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountKeyCommitmentrecord component.intattempt()Returns the value of theattemptrecord component.Returns the value of theauthorizationIdrecord component.Returns the value of thechallengeTyperecord component.Returns the value of thecommitmentrecord component.Returns the value of thedirectoryPolicyCommitmentrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevidenceIdrecord component.Returns the value of theexpiresAtrecord component.Returns the value of thefailureCoderecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentifierrecord component.Returns the value of thekeyAuthorizationCommitmentrecord component.Returns the value of theproviderIdrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidatedAtrecord component.
-
Constructor Details
-
AuthorizationEvidence
public 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) Validates complete authorization-evidence 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. -
evidenceId
Returns the value of theevidenceIdrecord component.- Returns:
- the value of the
evidenceIdrecord component
-
authorizationId
Returns the value of theauthorizationIdrecord component.- Returns:
- the value of the
authorizationIdrecord component
-
providerId
Returns the value of theproviderIdrecord component.- Returns:
- the value of the
providerIdrecord component
-
challengeType
Returns the value of thechallengeTyperecord component.- Returns:
- the value of the
challengeTyperecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
accountKeyCommitment
Returns the value of theaccountKeyCommitmentrecord component.- Returns:
- the value of the
accountKeyCommitmentrecord component
-
keyAuthorizationCommitment
Returns the value of thekeyAuthorizationCommitmentrecord component.- Returns:
- the value of the
keyAuthorizationCommitmentrecord component
-
directoryPolicyCommitment
Returns the value of thedirectoryPolicyCommitmentrecord component.- Returns:
- the value of the
directoryPolicyCommitmentrecord component
-
attempt
-
validatedAt
Returns the value of thevalidatedAtrecord component.- Returns:
- the value of the
validatedAtrecord component
-
expiresAt
-
result
-
failureCode
Returns the value of thefailureCoderecord component.- Returns:
- the value of the
failureCoderecord component
-
commitment
Returns the value of thecommitmentrecord component.- Returns:
- the value of the
commitmentrecord component
-