Record Class SigningRequest
java.lang.Object
java.lang.Record
zeroecho.pki.api.signing.SigningRequest
- Record Components:
submissionId- caller-reserved operation identityaccessContext- trusted authorization and audit contextkeyRef- authorized provider key referencefairnessAuthorityId- durable scheduling authority identitysignatureAlgorithm- exact signature identity; the service enforces its security floor and provider support before stagingcandidateEncoding- encoding of staged candidate bytessignatureEncoding- requested signature encoding; currently BINARY
public record SigningRequest(SigningSubmissionId submissionId, AccessContext accessContext, KeyRef keyRef, PkiId fairnessAuthorityId, AlgorithmIdentity signatureAlgorithm, Encoding candidateEncoding, Encoding signatureEncoding)
extends Record
Immutable privileged input for one sign-only operation.
-
Constructor Summary
ConstructorsConstructorDescriptionSigningRequest(SigningSubmissionId submissionId, AccessContext accessContext, KeyRef keyRef, PkiId fairnessAuthorityId, AlgorithmIdentity signatureAlgorithm, Encoding candidateEncoding, Encoding signatureEncoding) Validates required components and the signature identity's semantic kind. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessContextrecord component.Returns the value of thecandidateEncodingrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefairnessAuthorityIdrecord component.final inthashCode()Returns a hash code value for this object.keyRef()Returns the value of thekeyRefrecord component.Returns the value of thesignatureAlgorithmrecord component.Returns the value of thesignatureEncodingrecord component.Returns the value of thesubmissionIdrecord component.toString()Returns a representation that omits privileged request metadata.
-
Constructor Details
-
SigningRequest
public SigningRequest(SigningSubmissionId submissionId, AccessContext accessContext, KeyRef keyRef, PkiId fairnessAuthorityId, AlgorithmIdentity signatureAlgorithm, Encoding candidateEncoding, Encoding signatureEncoding) Validates required components and the signature identity's semantic kind. Provider support and the PKI security floor are checked by preparation.- Throws:
NullPointerException- if a component is nullIllegalArgumentException- if the identity is not a signature or the signature encoding is not BINARY
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
submissionId
Returns the value of thesubmissionIdrecord component.- Returns:
- the value of the
submissionIdrecord 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
-
signatureAlgorithm
Returns the value of thesignatureAlgorithmrecord component.- Returns:
- the value of the
signatureAlgorithmrecord component
-
candidateEncoding
Returns the value of thecandidateEncodingrecord component.- Returns:
- the value of the
candidateEncodingrecord component
-
signatureEncoding
Returns the value of thesignatureEncodingrecord component.- Returns:
- the value of the
signatureEncodingrecord component
-