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

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

Constructors

new DigestContextBuilder()

new DigestContextBuilder(): DigestContextBuilder

Returns

DigestContextBuilder

Methods

build()

build(): DigestContext

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

Throws

  • If the digest algorithm is not specified.

Returns

DigestContext

DigestContext The built digest context.


Last updated: Jul 22, 2026