Interface IHmacContextBuilder
interface IHmacContextBuilder
Extends com.amazon.apmf.IStandard
Methods
digestAlgorithm()
This function is deprecated, please use com.amazon.kepler.crypto3.IHmacContextBuilder2.macAlgorithm instead. Specify the digest algorithm to use. This parameter is mandatory.IHmacContextBuilder*digestAlgorithm(IDigestAlgorithm*alg)
Parameters
alg
IDigestAlgorithm* — Required
The digest algorithm to use.
Returns
IHmacContextBuilder*
The HMAC context builder object.
key()
Specify the key to use. This parameter is mandatory.IHmacContextBuilder*key(ISymmetricKey*key)
Parameters
key
ISymmetricKey* — Required
The key to use.
Returns
IHmacContextBuilder*
The HMAC context builder object.
build()
Build a context that can be used for performing HMAC operations.IHmacContext*build()
Returns
IHmacContext*
The built HMAC context.
Throws
InvalidArgumentError— if required parameters are not specified.

