Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface ISignatureContextBuilder

interface ISignatureContextBuilder
Extends com.amazon.apmf.IStandard Interface for building signature contexts.

Methods

signingAlgorithm()

ISignatureContextBuilder* signingAlgorithm(IAsymmetricAlgorithm* alg)
Set the algorithm to use for signing. If not specified, this will be determined from the key type if possible.

Parameters

alg
IAsymmetricAlgorithm* — Required The asymmetric algorithm to use for signing.

Returns

ISignatureContextBuilder* The signature context builder object.

digestAlgorithm()

ISignatureContextBuilder* digestAlgorithm(IDigestAlgorithm* alg)
Set the digest to use for hashing message contents. This will default to SHA256 if not specified.

Parameters

alg
IDigestAlgorithm* — Required The digest algorithm to use.

Returns

ISignatureContextBuilder* The signature context builder object.

buildSigningContext()

ISigningContext* buildSigningContext(IPrivateKey* key)
Build a context for signing operations.

Parameters

key
IPrivateKey* — Required The private key to use for signing.

Returns

ISigningContext* The signing context object.

buildVerificationContext()

IVerificationContext* buildVerificationContext(IPublicKey* key)
Build a context for verification operations.

Parameters

key
IPublicKey* — Required The public key to use for verification.

Returns

IVerificationContext* The verification context object.
Last modified on October 29, 2026