Record Class CredentialConfirmationPolicy
java.lang.Object
java.lang.Record
zeroecho.pki.api.confirmation.CredentialConfirmationPolicy
- Record Components:
disclosurePolicy- disclosure state frozen by issuanceconfirmationWindow- positive confirmation interval, at most 100 yearsproofSuite- exact proof-suite configuration frozen by issuance
public record CredentialConfirmationPolicy(ConfirmationDisclosurePolicy disclosurePolicy, Duration confirmationWindow, ConfirmationProofSuiteRef proofSuite)
extends Record
Immutable issuance-profile policy for credential confirmation.
The commitment is a domain-separated canonical SHA-256 digest of the disclosure policy, exact confirmation window, and exact proof-suite reference. Runtime and client-provided state are deliberately excluded.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCredentialConfirmationPolicy(ConfirmationDisclosurePolicy disclosurePolicy, Duration confirmationWindow, ConfirmationProofSuiteRef proofSuite) Validates the complete immutable policy. -
Method Summary
Modifier and TypeMethodDescriptionReturns the canonical lowercase hexadecimal SHA-256 policy commitment.Returns the value of theconfirmationWindowrecord component.Returns the value of thedisclosurePolicyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theproofSuiterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MAXIMUM_CONFIRMATION_WINDOW
Largest accepted confirmation window.
-
-
Constructor Details
-
CredentialConfirmationPolicy
public CredentialConfirmationPolicy(ConfirmationDisclosurePolicy disclosurePolicy, Duration confirmationWindow, ConfirmationProofSuiteRef proofSuite) Validates the complete immutable policy.
-
-
Method Details
-
configurationCommitment
Returns the canonical lowercase hexadecimal SHA-256 policy commitment.- Returns:
- 64-character policy commitment
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
disclosurePolicy
Returns the value of thedisclosurePolicyrecord component.- Returns:
- the value of the
disclosurePolicyrecord component
-
confirmationWindow
Returns the value of theconfirmationWindowrecord component.- Returns:
- the value of the
confirmationWindowrecord component
-
proofSuite
Returns the value of theproofSuiterecord component.- Returns:
- the value of the
proofSuiterecord component
-