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 IKeystore

interface IKeystore
Extends com.amazon.apmf.IStandard An interface for interacting with a specific keystore.

Methods

getSecurityLevel()

SecurityLevel* getSecurityLevel()
Get the security level of this keystore.

Returns

SecurityLevel* The security level of the keystore.

getSupportedDigestAlgorithms()

com.amazon.kepler.crypto.IDigestAlgorithm*[] getSupportedDigestAlgorithms()
List the digest algorithms that this keystore supports.

Returns

com.amazon.kepler.crypto.IDigestAlgorithm*[] An array of supported digest algorithms.

getSupportedSymmetricAlgorithms()

com.amazon.kepler.crypto.ISymmetricAlgorithm*[] getSupportedSymmetricAlgorithms()
List the symmetric algorithms that this keystore supports.

Returns

com.amazon.kepler.crypto.ISymmetricAlgorithm*[] An array of supported symmetric algorithms.

makeSymmetricKeyBuilder()

IKeystoreSymmetricKeyBuilder* makeSymmetricKeyBuilder()
Make a builder that can be used to import or generate a symmetric key in this keystore.

Returns

IKeystoreSymmetricKeyBuilder* The symmetric key builder object.

getSupportedSignatureAlgorithms()

com.amazon.kepler.crypto.IAsymmetricAlgorithm*[] getSupportedSignatureAlgorithms()
List the asymmetric signature algorithms that this keystore supports.

Returns

com.amazon.kepler.crypto.IAsymmetricAlgorithm*[] An array of supported asymmetric signature algorithms.

getSupportedEccCurves()

com.amazon.kepler.crypto.IEccCurve*[] getSupportedEccCurves()
List the elliptic-curve cryptography curves that this keystore supports.

Returns

com.amazon.kepler.crypto.IEccCurve*[] An array of supported elliptic-curve cryptography curves.

makeAsymmetricKeyBuilder()

IKeystoreAsymmetricKeyBuilder* makeAsymmetricKeyBuilder()
Make a builder that can be used to import or generate an asymmetric key in this keystore.

Returns

IKeystoreAsymmetricKeyBuilder* The asymmetric key builder object.

getKey()

IKeystoreKey* getKey(string name)
Retrieve a handle to a key in the keystore.

Parameters

name
string — Required The name of the key to retrieve.

Returns

IKeystoreKey* The requested key.

Throws


getAllKeys()

IKeystoreKey*[] getAllKeys()
Retrieve a handle to all keys in the keystore. Note: Some named keystores may only support getting a subset of keys.

Returns

IKeystoreKey*[] An array of all keys in the keystore.

getSupportedAsymmetricCipherAlgorithms()

com.amazon.kepler.crypto.IAsymmetricAlgorithm*[] getSupportedAsymmetricCipherAlgorithms()
List the asymmetric cipher algorithms that this keystore supports.

Returns

com.amazon.kepler.crypto.IAsymmetricAlgorithm*[] An array of supported asymmetric cipher algorithms.

removeKey()

void removeKey(IKeystoreKey* key)
Remove a key from the keystore. After calling this method, the key handle will no longer be valid. Even if another key with the same name is added to the keystore, this key handle will not be able to use it.

Parameters

key
IKeystoreKey* — Required The key to remove from the keystore.

removeAllKeys()

void removeAllKeys()
Remove all keys from the keystore. This removes all keys from the keystore, even if they cannot be retrieved using getAllKeys(). In some cases, this may clear a wrapping key from the keystore to ensure exported key blobs cannot be imported.
Last modified on October 22, 2026