as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
メインコンテンツへスキップ
Represents a wrapping context. This class provides functionality to securely wrap (encrypt) and unwrap (decrypt) cryptographic keys or sensitive data.

Extends

  • BaseCryptoClass

Constructors

new WrappingContext()

new WrappingContext(): WrappingContext

Returns

WrappingContext

Methods

unwrap()

unwrap(wrapped: ArrayBuffer): Promise<ArrayBuffer>
Unwrap (decrypt) a previously wrapped key or sensitive data and return the unwrapped data.

Parameters

wrapped
ArrayBuffer The wrapped (encrypted) key or data to be unwrapped.

Throws

  • SecurityError If the unwrapping operation fails.

Returns

Promise<ArrayBuffer> Promise<ArrayBuffer> A promise that resolves to the unwrapped (decrypted) key or data.

wrap()

wrap(unwrapped: ArrayBuffer): Promise<ArrayBuffer>
Wrap (encrypt) a key or sensitive data and return the wrapped data.

Parameters

unwrapped
ArrayBuffer The key or data to be wrapped.

Throws

  • SecurityError If the wrapping operation fails.

Returns

Promise<ArrayBuffer> Promise<ArrayBuffer> A promise that resolves to the wrapped (encrypted) key or data.
最終更新日 2026年8月25日