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 IHmacContextBuilder

interface IHmacContextBuilder
Extends com.amazon.apmf.IStandard

Methods

digestAlgorithm()

IHmacContextBuilder* digestAlgorithm(IDigestAlgorithm* alg)
This function is deprecated, please use com.amazon.kepler.crypto3.IHmacContextBuilder2.macAlgorithm instead. Specify the digest algorithm to use. This parameter is mandatory.

Parameters

alg
IDigestAlgorithm* — Required The digest algorithm to use.

Returns

IHmacContextBuilder* The HMAC context builder object.

key()

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

Parameters

key
ISymmetricKey* — Required The key to use.

Returns

IHmacContextBuilder* The HMAC context builder object.

build()

IHmacContext* build()
Build a context that can be used for performing HMAC operations.

Returns

IHmacContext* The built HMAC context.

Throws


Last modified on October 29, 2026