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 RSA keys. This class extends AsymmetricKeyBuilder to provide specific functionality for RSA key generation.

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

bits

Set Signature

set bits(bits): void Set the size of the RSA key. Defaults to 4096.
Parameters
bits
number The size of the key in bits. Common values are 2048, 3072, or 4096.
Returns
void
Last modified on October 2, 2025