Record Class SignWorkflowStore.AcceptanceEnvelope
java.lang.Object
java.lang.Record
zeroecho.pki.spi.store.SignWorkflowStore.AcceptanceEnvelope
- Record Components:
operationId- canonical accepted signing operation identityacceptanceCommitment- verified commitment to the complete immutable acceptance commandproviderNamespace- exact provider namespaceproviderConfigurationCommitment- exact accepted provider configuration commitmentaccessContext- trusted access context retained at acceptancekeyRef- accepted signing key referencefairnessAuthorityId- server-derived authority used for fair schedulingalgorithmId- canonical signature algorithm identitysignatureEncoding- requested signature encodingcreatedAt- operation identifier creation timedeadline- absolute accepted signing deadlinecandidate- sealed staged content retained by this workflowouter- optional paired domain continuation commandmode- immutable execution policy selected at acceptanceproofStep- optional descriptor of the parent-owned CA proof step
- Enclosing interface:
SignWorkflowStore
public static record SignWorkflowStore.AcceptanceEnvelope(PkiId operationId, SignWorkflowStore.AcceptanceCommitment acceptanceCommitment, String providerNamespace, SigningProvider.ConfigurationCommitment providerConfigurationCommitment, AccessContext accessContext, KeyRef keyRef, PkiId fairnessAuthorityId, String algorithmId, Encoding signatureEncoding, Instant createdAt, Instant deadline, DurableContentReference candidate, Optional<SignWorkflowStore.OuterCommand> outer, SignWorkflowStore.Mode mode, Optional<SignWorkflowStore.CaSubjectProofStep> proofStep)
extends Record
Once-written immutable signing envelope. It contains no mutable lifecycle
fields and is not retained in the active projection. The immutable mode
participates in the commitment; bounded observation cannot have an outer command.
-
Constructor Summary
ConstructorsConstructorDescriptionAcceptanceEnvelope(PkiId operationId, SignWorkflowStore.AcceptanceCommitment acceptanceCommitment, String providerNamespace, SigningProvider.ConfigurationCommitment providerConfigurationCommitment, AccessContext accessContext, KeyRef keyRef, PkiId fairnessAuthorityId, String algorithmId, Encoding signatureEncoding, Instant createdAt, Instant deadline, DurableContentReference candidate, Optional<SignWorkflowStore.OuterCommand> outer, SignWorkflowStore.Mode mode, Optional<SignWorkflowStore.CaSubjectProofStep> proofStep) Validates one exact immutable envelope. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theacceptanceCommitmentrecord component.Returns the value of theaccessContextrecord component.Returns the value of thealgorithmIdrecord component.Returns the value of thecandidaterecord component.Returns the value of thecreatedAtrecord component.deadline()Returns the value of thedeadlinerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefairnessAuthorityIdrecord component.from(SignWorkflowStore.AcceptanceCommand command) Creates the immutable envelope for a validated acceptance command.final inthashCode()Returns a hash code value for this object.keyRef()Returns the value of thekeyRefrecord component.mode()Returns the value of themoderecord component.Returns the value of theoperationIdrecord component.outer()Returns the value of theouterrecord component.Returns the value of theproofSteprecord component.Returns the value of theproviderConfigurationCommitmentrecord component.Returns the value of theproviderNamespacerecord component.Returns the value of thesignatureEncodingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AcceptanceEnvelope
public AcceptanceEnvelope(PkiId operationId, SignWorkflowStore.AcceptanceCommitment acceptanceCommitment, String providerNamespace, SigningProvider.ConfigurationCommitment providerConfigurationCommitment, AccessContext accessContext, KeyRef keyRef, PkiId fairnessAuthorityId, String algorithmId, Encoding signatureEncoding, Instant createdAt, Instant deadline, DurableContentReference candidate, Optional<SignWorkflowStore.OuterCommand> outer, SignWorkflowStore.Mode mode, Optional<SignWorkflowStore.CaSubjectProofStep> proofStep) Validates one exact immutable envelope.
-
-
Method Details
-
from
public static SignWorkflowStore.AcceptanceEnvelope from(SignWorkflowStore.AcceptanceCommand command) Creates the immutable envelope for a validated acceptance command.- Parameters:
command- non-null accepted input- Returns:
- immutable envelope with its computed 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). -
operationId
Returns the value of theoperationIdrecord component.- Returns:
- the value of the
operationIdrecord component
-
acceptanceCommitment
Returns the value of theacceptanceCommitmentrecord component.- Returns:
- the value of the
acceptanceCommitmentrecord component
-
providerNamespace
Returns the value of theproviderNamespacerecord component.- Returns:
- the value of the
providerNamespacerecord component
-
providerConfigurationCommitment
Returns the value of theproviderConfigurationCommitmentrecord component.- Returns:
- the value of the
providerConfigurationCommitmentrecord component
-
accessContext
Returns the value of theaccessContextrecord component.- Returns:
- the value of the
accessContextrecord component
-
keyRef
-
fairnessAuthorityId
Returns the value of thefairnessAuthorityIdrecord component.- Returns:
- the value of the
fairnessAuthorityIdrecord component
-
algorithmId
Returns the value of thealgorithmIdrecord component.- Returns:
- the value of the
algorithmIdrecord component
-
signatureEncoding
Returns the value of thesignatureEncodingrecord component.- Returns:
- the value of the
signatureEncodingrecord component
-
createdAt
-
deadline
-
candidate
-
outer
-
mode
-
proofStep
-