Record Class IssuanceExecutionEvidence
java.lang.Object
java.lang.Record
zeroecho.pki.application.IssuanceExecutionEvidence
- Record Components:
actorType- authenticated actor classificationactorId- authenticated administrative or protocol requester identifierrealmId- realm identityrequestId- trusted originating invocation correlation identifierauthentication- authentication classification- authorization classification- exact administrative or enrollment path (absent for legacy ACME ownership evidence)operationCommitment- exact durable operation commitment (absent for legacy ACME ownership evidence)issuerCaId- issuing authority identityprofileId- frozen certificate-profile identity governing issuanceoutcome- outcome committed atomically with the credential
public record IssuanceExecutionEvidence(IssuanceExecutionEvidence.ActorType actorType, String actorId, String realmId, String requestId, IssuanceExecutionEvidence.Authentication authentication, IssuanceExecutionEvidence.Authorization authorization, Optional<IssuanceExecutionEvidence.AuthorizationPath> authorizationPath, Optional<String> operationCommitment, String issuerCaId, String profileId, IssuanceExecutionEvidence.Outcome outcome)
extends Record
Immutable, server-derived evidence co-committed with a successful end-entity issuance.
The evidence is written into the issued Credential's universal attribute set in the
same atomic durable write as the credential itself, so a committed credential always carries its
authenticated issuance provenance. Native credential fields remain the authority for identity,
issuer, profile, validity, and status; this evidence records only the authenticated actor and
authorization path that produced it. It mirrors RevocationExecutionEvidence so the two
families project through the same generic audit-projection framework.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumStable evidence actor classifications.static enumStable evidence authentication classifications.static enumStable evidence authorization classifications.static enumExact administrative or enrollment authorization path; administrative break-glass takes precedence.static enumOutcome committed atomically with the credential. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary.static final AttributeIdEvidence attribute vocabulary. -
Constructor Summary
ConstructorsConstructorDescriptionIssuanceExecutionEvidence(IssuanceExecutionEvidence.ActorType actorType, String actorId, String realmId, String requestId, IssuanceExecutionEvidence.Authentication authentication, IssuanceExecutionEvidence.Authorization authorization, Optional<IssuanceExecutionEvidence.AuthorizationPath> authorizationPath, Optional<String> operationCommitment, String issuerCaId, String profileId, IssuanceExecutionEvidence.Outcome outcome) Validates the closed evidence model. -
Method Summary
Modifier and TypeMethodDescriptionstatic IssuanceExecutionEvidenceCreates authoritative protocol-native ACME issuance evidence.actorId()Returns the value of theactorIdrecord component.Returns the value of theactorTyperecord component.static IssuanceExecutionEvidenceadministrative(String principalId, String realmId, String requestId, IssuanceExecutionEvidence.Authentication authentication, IssuanceExecutionEvidence.AuthorizationPath path, String operationCommitment, String issuerCaId, String profileId) Creates authoritative administrative issuance evidence.Returns an immutable set containing only the closed evidence vocabulary.Returns the value of theauthenticationrecord component.Returns the value of theauthorizationrecord component.Returns the value of theauthorizationPathrecord component.static Optional<IssuanceExecutionEvidence> decode(byte[] payload) Decodes a feed payload containing UTF-8 canonical unpadded base64url attributes.static Optional<IssuanceExecutionEvidence> decode(AttributeSet attributes) Strictly decodes the closed version-one evidence vocabulary.static IssuanceExecutionEvidenceenrollment(IssuanceExecutionEvidence.ActorType actorType, String actorId, String realmId, String requestId, IssuanceExecutionEvidence.Authentication authentication, boolean approved, String operationCommitment, String issuerCaId, String profileId) Creates evidence for a verified protocol requester admitted through an exact durable enrollment policy and, when required, independent approval.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 theissuerCaIdrecord component.Returns the value of theoperationCommitmentrecord component.outcome()Returns the value of theoutcomerecord component.Returns the value of theprofileIdrecord component.realmId()Returns the value of therealmIdrecord component.Returns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ACTOR_TYPE
Evidence attribute vocabulary. -
ACTOR_ID
Evidence attribute vocabulary. -
REALM_ID
Evidence attribute vocabulary. -
REQUEST_ID
Evidence attribute vocabulary. -
AUTHENTICATION
Evidence attribute vocabulary. -
AUTHORIZATION
Evidence attribute vocabulary. -
AUTHORIZATION_PATH
Evidence attribute vocabulary. -
OPERATION_COMMITMENT
Evidence attribute vocabulary. -
ISSUER_CA_ID
Evidence attribute vocabulary. -
PROFILE_ID
Evidence attribute vocabulary. -
OUTCOME
Evidence attribute vocabulary.
-
-
Constructor Details
-
IssuanceExecutionEvidence
public IssuanceExecutionEvidence(IssuanceExecutionEvidence.ActorType actorType, String actorId, String realmId, String requestId, IssuanceExecutionEvidence.Authentication authentication, IssuanceExecutionEvidence.Authorization authorization, Optional<IssuanceExecutionEvidence.AuthorizationPath> authorizationPath, Optional<String> operationCommitment, String issuerCaId, String profileId, IssuanceExecutionEvidence.Outcome outcome) Validates the closed evidence model.
-
-
Method Details
-
administrative
public static IssuanceExecutionEvidence administrative(String principalId, String realmId, String requestId, IssuanceExecutionEvidence.Authentication authentication, IssuanceExecutionEvidence.AuthorizationPath path, String operationCommitment, String issuerCaId, String profileId) Creates authoritative administrative issuance evidence.- Parameters:
principalId- bounded authenticated administrator identifierrealmId- bounded authorization realm identifierrequestId- trusted originating invocation correlation identifierauthentication- direct mutual TLS or trusted reverse-proxy mutual TLSpath- administrative grant, approval, or break-glass pathoperationCommitment- lowercase 64-hex-character operation commitmentissuerCaId- issuing authority identifierprofileId- frozen certificate-profile identifier- Returns:
- validated immutable administrative evidence
-
acme
public static IssuanceExecutionEvidence acme(String accountId, String realmId, String requestId, String issuerCaId, String profileId) Creates authoritative protocol-native ACME issuance evidence.- Parameters:
accountId- bounded ACME account identifierrealmId- bounded authorization realm identifierrequestId- trusted originating invocation correlation identifierissuerCaId- issuing authority identifierprofileId- frozen certificate-profile identifier- Returns:
- validated immutable ACME ownership evidence
-
enrollment
public static IssuanceExecutionEvidence enrollment(IssuanceExecutionEvidence.ActorType actorType, String actorId, String realmId, String requestId, IssuanceExecutionEvidence.Authentication authentication, boolean approved, String operationCommitment, String issuerCaId, String profileId) Creates evidence for a verified protocol requester admitted through an exact durable enrollment policy and, when required, independent approval. This factory grants no authority and cannot represent an administrator.- Parameters:
actorType- protocol-native requester classificationactorId- authenticated protocol identityrealmId- owning realmrequestId- durable enrollment request identityauthentication- matching verified protocol mechanismapproved- whether the frozen policy required and obtained approvaloperationCommitment- complete frozen enrollment intent commitmentissuerCaId- frozen issuing authorityprofileId- frozen certificate profile- Returns:
- immutable evidence suitable for exact signing-context validation
-
attributes
Returns an immutable set containing only the closed evidence vocabulary.- Returns:
- canonical version-one evidence attributes
-
decode
Strictly decodes the closed version-one evidence vocabulary.- Parameters:
attributes- credential attributes to inspect- Returns:
- empty only when no version-one evidence attribute is present
- Throws:
IllegalArgumentException- if evidence is unknown, partial, duplicated, mistyped, or semantically inconsistent
-
decode
Decodes a feed payload containing UTF-8 canonical unpadded base64url attributes. The encoded byte count is bounded before allocation; the existing attribute decoder enforces canonical framing and its decoded-byte and entry limits.- Parameters:
payload- exact evidence-feed bytes, borrowed for this call- Returns:
- empty only when this evidence family's vocabulary is absent
- Throws:
IllegalArgumentException- if framing or this family's vocabulary is invalid
-
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). -
actorType
-
actorId
-
realmId
-
requestId
-
authentication
Returns the value of theauthenticationrecord component.- Returns:
- the value of the
authenticationrecord component
-
authorization
Returns the value of theauthorizationrecord component.- Returns:
- the value of the
authorizationrecord component
-
authorizationPath
Returns the value of theauthorizationPathrecord component.- Returns:
- the value of the
authorizationPathrecord component
-
operationCommitment
Returns the value of theoperationCommitmentrecord component.- Returns:
- the value of the
operationCommitmentrecord component
-
issuerCaId
Returns the value of theissuerCaIdrecord component.- Returns:
- the value of the
issuerCaIdrecord component
-
profileId
-
outcome
-