as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

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: Sep 30, 2025