Extends
BaseCryptoClass
Extended by
Constructors
new SignatureContextBuilder()
new SignatureContextBuilder(): SignatureContextBuilder
Returns
SignatureContextBuilderMethods
buildSigningContext()
buildSigningContext(key: PrivateKey): SigningContextBuild a context for signing operations. This context can be used to create digital signatures using the specified private key.
Parameters
key
PrivateKey The private key to use for signing.Throws
AccessDeniedErrorIf the key lacks the KeyPurpose.SIGN purpose.InvalidArgumentErrorIf the signing algorithm is not supported.
Returns
SigningContextSigningContext A signing context object.
buildVerificationContext()
buildVerificationContext(key: PublicKey): VerificationContextBuild a context for verification operations. This context can be used to verify digital signatures using the specified public key.
Parameters
key
PublicKey The public key to use for verification.Throws
AccessDeniedErrorIf the key lacks the KeyPurpose.VERIFY purpose.InvalidArgumentErrorIf the signing algorithm is not supported.
Returns
VerificationContextVerificationContext A verification context object.
