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
Native
Skip to main content

Interface IKeystoreRsaOaepKeyBuilder2

interface IKeystoreRsaOaepKeyBuilder2
Extends IKeystoreAsymmetricKeyBuilder Enhanced keystore RSA OAEP key builder with public exponent support. This interface extends the original keystore RSA OAEP functionality with additional support for setting custom public exponents.

Methods

bits()

IKeystoreRsaOaepKeyBuilder2* bits(i32 bits)
Set the size of the RSA OAEP key.

Parameters

bits
i32 — Required The size of the key.

Returns

IKeystoreRsaOaepKeyBuilder2* The RSA OAEP key builder.

publicExponent()

IKeystoreRsaOaepKeyBuilder2* publicExponent(u8[] exponent)
Set an explicit public exponent for RSA OAEP key generation. If not specified, {0x01, 0x00, 0x01} will be used.

Parameters

exponent
u8[] — Required The public exponent to use for RSA key generation.

Returns

IKeystoreRsaOaepKeyBuilder2* This builder for method chaining.
Last modified on October 29, 2026