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 ICipherContextBuilder

interface ICipherContextBuilder
Extends com.amazon.apmf.IStandard Interface for building cipher contexts.

Methods

key()

ICipherContextBuilder* key(ISymmetricKey* key)
Specify the key to use. This parameter is mandatory.

Parameters

key
ISymmetricKey* — Required The symmetric key to use.

Returns

ICipherContextBuilder* The cipher context builder object.

buildEncryptionContext()

IEncryptionContext* buildEncryptionContext()
Build a context that can be used for encryption.

Returns

IEncryptionContext* An encryption context.

Throws


buildDecryptionContext()

IDecryptionContext* buildDecryptionContext()
Build a context that can be used for decryption.

Returns

IDecryptionContext* A decryption context.

Throws


buildWrappingContext()

IWrappingContext* buildWrappingContext(IWrappingScheme* scheme)
Build a context that can be used for wrapping keys.

Parameters

scheme
IWrappingScheme* — Required The wrapping scheme to be used.

Returns

IWrappingContext* A wrapping context.

Throws


Last modified on October 29, 2026