Interface IKeystore
interface IKeystore
Extends com.amazon.apmf.IStandard
An interface for interacting with a specific keystore.
Methods
getSecurityLevel()
Get the security level of this keystore.SecurityLevel*getSecurityLevel()
Returns
SecurityLevel*
The security level of the keystore.
getSupportedDigestAlgorithms()
List the digest algorithms that this keystore supports.com.amazon.kepler.crypto.IDigestAlgorithm*[]getSupportedDigestAlgorithms()
Returns
com.amazon.kepler.crypto.IDigestAlgorithm*[]
An array of supported digest algorithms.
getSupportedSymmetricAlgorithms()
List the symmetric algorithms that this keystore supports.com.amazon.kepler.crypto.ISymmetricAlgorithm*[]getSupportedSymmetricAlgorithms()
Returns
com.amazon.kepler.crypto.ISymmetricAlgorithm*[]
An array of supported symmetric algorithms.
makeSymmetricKeyBuilder()
Make a builder that can be used to import or generate a symmetric key in this keystore.IKeystoreSymmetricKeyBuilder*makeSymmetricKeyBuilder()
Returns
IKeystoreSymmetricKeyBuilder*
The symmetric key builder object.
getSupportedSignatureAlgorithms()
List the asymmetric signature algorithms that this keystore supports.com.amazon.kepler.crypto.IAsymmetricAlgorithm*[]getSupportedSignatureAlgorithms()
Returns
com.amazon.kepler.crypto.IAsymmetricAlgorithm*[]
An array of supported asymmetric signature algorithms.
getSupportedEccCurves()
List the elliptic-curve cryptography curves that this keystore supports.com.amazon.kepler.crypto.IEccCurve*[]getSupportedEccCurves()
Returns
com.amazon.kepler.crypto.IEccCurve*[]
An array of supported elliptic-curve cryptography curves.
makeAsymmetricKeyBuilder()
Make a builder that can be used to import or generate an asymmetric key in this keystore.IKeystoreAsymmetricKeyBuilder*makeAsymmetricKeyBuilder()
Returns
IKeystoreAsymmetricKeyBuilder*
The asymmetric key builder object.
getKey()
Retrieve a handle to a key in the keystore.IKeystoreKey*getKey(stringname)
Parameters
name
string — Required
The name of the key to retrieve.
Returns
IKeystoreKey*
The requested key.
Throws
NoSuchKeyError— if no matching key exists in this keystore.
getAllKeys()
Retrieve a handle to all keys in the keystore. Note: Some named keystores may only support getting a subset of keys.IKeystoreKey*[]getAllKeys()
Returns
IKeystoreKey*[]
An array of all keys in the keystore.
getSupportedAsymmetricCipherAlgorithms()
List the asymmetric cipher algorithms that this keystore supports.com.amazon.kepler.crypto.IAsymmetricAlgorithm*[]getSupportedAsymmetricCipherAlgorithms()
Returns
com.amazon.kepler.crypto.IAsymmetricAlgorithm*[]
An array of supported asymmetric cipher algorithms.
removeKey()
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.voidremoveKey(IKeystoreKey*key)
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.

