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 IKeystoreAsymmetricKeyBuilder

interface IKeystoreAsymmetricKeyBuilder
Extends com.amazon.kepler.crypto.IAsymmetricKeyBuilder An interface for generating or importing asymmetric keys in a keystore.

Methods

addDigest()

IKeystoreAsymmetricKeyBuilder* addDigest(com.amazon.kepler.crypto.IDigestAlgorithm* digest)
Add the digest algorithm to the supported algorithms list for this key. This list should be kept as small as possible to limit the possibility of leaking the key. An error will be thrown if this is not specified for:
  • Keys with a purpose of signing or verifying.
  • RSA keys with purpose of encryption or decryption used with OAEP.

Parameters

digest
com.amazon.kepler.crypto.IDigestAlgorithm* — Required The digest to add.

Returns

IKeystoreAsymmetricKeyBuilder* The builder.

addRsaSignatureScheme()

IKeystoreAsymmetricKeyBuilder* addRsaSignatureScheme(RsaSignatureScheme* scheme)
Add the supported RSA signature scheme for this key. It is an error to specify this parameter for algorithms other than RSA.

Parameters

scheme
RsaSignatureScheme* — Required The RSA scheme to support.

Returns

IKeystoreAsymmetricKeyBuilder* The builder.

name()

IKeystoreAsymmetricKeyBuilder* name(string name)
Set the name to identify this key. This parameter is mandatory. If a key with the same name already exists in the keystore, the build method will throw a DuplicateKeyError.

Parameters

name
string — Required The name for the key.

Returns

IKeystoreAsymmetricKeyBuilder* The builder.
Last modified on October 29, 2026