Interface ICipherContextBuilder
interface ICipherContextBuilder
Extends com.amazon.apmf.IStandard
Interface for building cipher contexts.
Methods
key()
Specify the key to use. This parameter is mandatory.ICipherContextBuilder*key(ISymmetricKey*key)
Parameters
key
ISymmetricKey* — Required
The symmetric key to use.
Returns
ICipherContextBuilder*
The cipher context builder object.
buildEncryptionContext()
Build a context that can be used for encryption.IEncryptionContext*buildEncryptionContext()
Returns
IEncryptionContext*
An encryption context.
Throws
InvalidArgumentError— if required parameters are not specified.
buildDecryptionContext()
Build a context that can be used for decryption.IDecryptionContext*buildDecryptionContext()
Returns
IDecryptionContext*
A decryption context.
Throws
InvalidArgumentError— if required parameters are not specified.
buildWrappingContext()
Build a context that can be used for wrapping keys.IWrappingContext*buildWrappingContext(IWrappingScheme*scheme)
Parameters
scheme
IWrappingScheme* — Required
The wrapping scheme to be used.
Returns
IWrappingContext*
A wrapping context.
Throws
InvalidArgumentError— if required parameters are not specified.

