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 IKeystoreRsaKeyBuilder2

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

Methods

bits()

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

Parameters

bits
i32 — Required The size of the key.

Returns

IKeystoreRsaKeyBuilder2* The RSA key builder.

publicExponent()

IKeystoreRsaKeyBuilder2* publicExponent(u8[] exponent)
Set an explicit public exponent for RSA 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

IKeystoreRsaKeyBuilder2* This builder for method chaining.
Last modified on October 22, 2026