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 IAsymmetricCipherContextBuilder

interface IAsymmetricCipherContextBuilder
Extends com.amazon.apmf.IStandard

Methods

buildEncryptionContext()

IEncryptionContext* buildEncryptionContext(IPublicKey* key)
Build an encryption context using the given public key.

Parameters

key
IPublicKey* — Required The public key.

Returns

IEncryptionContext* The encryption context.

buildDecryptionContext()

IDecryptionContext* buildDecryptionContext(IPrivateKey* key)
Build a decryption context using the given private key.

Parameters

key
IPrivateKey* — Required The private key.

Returns

IDecryptionContext* The decryption context.

buildWrappingContext()

IWrappingContext* buildWrappingContext(IPublicKey* pubKey, IPrivateKey* privKey, IWrappingScheme* scheme)
Build a wrapping context using the given public/private key and wrapping scheme.

Parameters

pubKey
IPublicKey* — Required The public key. It must not be NULL if wrap() is required.
privKey
IPrivateKey* — Required The private key. It must not be NULL if unwrap() is required.
scheme
IWrappingScheme* — Required The wrapping scheme to be used.

Returns

IWrappingContext* The wrapping context.

Throws


Last modified on October 29, 2026