as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

HmacContextBuilder

Provides support for building HMAC (Hash-based Message Authentication Code) contexts.

Extends

  • BaseCryptoClass

Accessors

digestAlgorithm

Set Signature

set digestAlgorithm(algorithm): void

Specify the digest algorithm to be used in the HMAC operation.

Remarks

This parameter is mandatory.

Throws

InvalidArgumentError If the algorithm is invalid.

Parameters
algorithm

DigestAlgorithm

The digest algorithm to use.

Returns

void


key

Set Signature

set key(key): void

Specify the key to be used in the HMAC operation.

Remarks

This parameter is mandatory.

Parameters
key

SymmetricKey

The key to use.

Returns

void

Methods

build()

build(): HmacContext

Build a context that can be used for performing HMAC operations, based on the configured parameters.

Returns

HmacContext

The built HMAC context.

Throws

InvalidArgumentError If any mandatory parameter is missing or invalid.


Last updated: Oct 02, 2025