as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
メインコンテンツへスキップ
Provides support for building signature contexts. This class allows the configuration of digital signature operations, including setting the signing algorithm and digest method.

Extends

  • BaseCryptoClass

Extended by

Constructors

new SignatureContextBuilder()

new SignatureContextBuilder(): SignatureContextBuilder

Returns

SignatureContextBuilder

Methods

buildSigningContext()

buildSigningContext(key: PrivateKey): SigningContext
Build 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

  • AccessDeniedError If the key lacks the KeyPurpose.SIGN purpose.
  • InvalidArgumentError If the signing algorithm is not supported.

Returns

SigningContext SigningContext A signing context object.

buildVerificationContext()

buildVerificationContext(key: PublicKey): VerificationContext
Build 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

  • AccessDeniedError If the key lacks the KeyPurpose.VERIFY purpose.
  • InvalidArgumentError If the signing algorithm is not supported.

Returns

VerificationContext VerificationContext A verification context object.
最終更新日 2026年8月25日