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
Skip to main content
A builder class for creating and managing Diffie-Hellman keys. This class extends AsymmetricKeyBuilder to provide Diffie-Hellman specific functionality.

Extends

Accessors

algorithm

Set Signature

set algorithm(algorithm): void Set the algorithm to be used for the asymmetric key.
Throws
InvalidArgumentError If the algorithm is not supported.
Parameters
algorithm
AsymmetricAlgorithm The asymmetric algorithm to use.
Returns
void

Inherited from

AsymmetricKeyBuilder.algorithm

exportable

Set Signature

set exportable(exportable): void Set whether the key is exportable.
Remarks
A key is NOT exportable unless explicitly set so.
Parameters
exportable
boolean A boolean value indicating whether the key is exportable.
Returns
void

Inherited from

AsymmetricKeyBuilder.exportable
Last modified on October 2, 2025