Interface IAsymmetricCipherContextBuilder
interface IAsymmetricCipherContextBuilder
Extends com.amazon.apmf.IStandard
Methods
buildEncryptionContext()
Build an encryption context using the given public key.IEncryptionContext*buildEncryptionContext(IPublicKey*key)
Parameters
key
IPublicKey* — Required
The public key.
Returns
IEncryptionContext*
The encryption context.
buildDecryptionContext()
Build a decryption context using the given private key.IDecryptionContext*buildDecryptionContext(IPrivateKey*key)
Parameters
key
IPrivateKey* — Required
The private key.
Returns
IDecryptionContext*
The decryption context.
buildWrappingContext()
Build a wrapping context using the given public/private key and wrapping scheme.IWrappingContext*buildWrappingContext(IPublicKey*pubKey,IPrivateKey*privKey,IWrappingScheme*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
InvalidArgumentError— if required parameters are not specified.

