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 IHmacKeyBuilder

interface IHmacKeyBuilder
Extends ISymmetricKeyBuilder Interface for building HMAC keys. This interface provides methods to configure and create HMAC keys with specific Message Authentication Code algorithms, key lengths, purposes, and exportability settings.

Methods

macAlgorithm()

IHmacKeyBuilder* macAlgorithm(IMessageAuthenticationCode* alg)
Set the Message Authentication Code algorithm for the HMAC key. This function specifies which MAC algorithm will be used with the key. The algorithm determines the underlying hash function and authentication tag length for HMAC operations.

Parameters

alg
IMessageAuthenticationCode* — Required The Message Authentication Code algorithm to use.

Returns

IHmacKeyBuilder* The HMAC key builder object for method chaining.
Last modified on October 29, 2026