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 with OAEP (Optimal Asymmetric Encryption Padding). This class extends AsymmetricKeyBuilder to provide 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

bits

Set Signature

set bits(bits): void Set the size of the RSA OAEP key in bits.
Parameters
bits
number The size of the key in bits.
Returns
void
Last modified on October 2, 2025