public class KeyProvider18
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
deleteKey(java.lang.String keyAlias)
Delete the encryption key that is used for encrypting
and decrypting data.
|
java.security.Key |
generateKey(java.lang.String rsaKeyAlias)
Generate the encryption key that is used for encrypting
and decrypting data.
|
java.security.Key |
retrieveKey(java.lang.String keyAlias)
Retrieve the encryption key that is used for encrypting
and decrypting data.
|
public java.security.Key generateKey(java.lang.String rsaKeyAlias) throws KeyNotGeneratedException
rsaKeyAlias
- String that identifies the encryption key.KeyNotGeneratedException
- when the encryption key
cannot be generated successfully. The caller of this method is
expected to handle this exception appropriately.public java.security.Key retrieveKey(java.lang.String keyAlias) throws KeyNotFoundException
keyAlias
- String that identifies the encryption key.KeyNotFoundException
- when the encryption key
cannot be found. The caller of this method is
expected to handle this exception appropriately.public void deleteKey(java.lang.String keyAlias)
keyAlias
- String that identifies the encryption key.