Interface IKeystoreAsymmetricKeyBuilder
interface IKeystoreAsymmetricKeyBuilder
Extends com.amazon.kepler.crypto.IAsymmetricKeyBuilder
An interface for generating or importing asymmetric keys in a keystore.
Methods
addDigest()
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:IKeystoreAsymmetricKeyBuilder*addDigest(com.amazon.kepler.crypto.IDigestAlgorithm*digest)
- 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()
Add the supported RSA signature scheme for this key. It is an error to specify this parameter for algorithms other than RSA.IKeystoreAsymmetricKeyBuilder*addRsaSignatureScheme(RsaSignatureScheme*scheme)
Parameters
scheme
RsaSignatureScheme* — Required
The RSA scheme to support.
Returns
IKeystoreAsymmetricKeyBuilder*
The builder.
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.IKeystoreAsymmetricKeyBuilder*name(stringname)
Parameters
name
string — Required
The name for the key.
Returns
IKeystoreAsymmetricKeyBuilder*
The builder.

