as

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

DigestContextBuilder

Provides support for building digest (hash) contexts. This class allows configuration of cryptographic hash operations, enabling the creation of fixed-size digests from arbitrary input data.

Extends

  • BaseCryptoClass

Accessors

digestAlgorithm

Set Signature

set digestAlgorithm(algorithm): void

Specify the digest algorithm to use.

Remarks

This parameter is mandatory.

Throws

InvalidArgumentError If the algorithm is invalid.

Parameters
algorithm

DigestAlgorithm

The digest algorithm to use.

Returns

void

Methods

build()

build(): DigestContext

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

Returns

DigestContext

The built digest context.

Throws

InvalidArgumentError If the digest algorithm is not specified.


Last updated: Oct 02, 2025