|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface KeyProviderCryptoExtension.CryptoExtension
CryptoExtension is a type of Extension that exposes methods to generate EncryptedKeys and to decrypt the same.
| Method Summary | |
|---|---|
KeyProvider.KeyVersion |
decryptEncryptedKey(KeyProviderCryptoExtension.EncryptedKeyVersion encryptedKeyVersion)
Decrypts an encrypted byte[] key material using the given a key version name and initialization vector. |
void |
drain(String keyName)
Drains the Queue for the provided key. |
KeyProviderCryptoExtension.EncryptedKeyVersion |
generateEncryptedKey(String encryptionKeyName)
Generates a key material and encrypts it using the given key version name and initialization vector. |
void |
warmUpEncryptedKeys(String... keyNames)
Calls to this method allows the underlying KeyProvider to warm-up any implementation specific caches used to store the Encrypted Keys. |
| Method Detail |
|---|
void warmUpEncryptedKeys(String... keyNames)
throws IOException
keyNames - Array of Key Names
IOExceptionvoid drain(String keyName)
keyName - the key to drain the Queue for
KeyProviderCryptoExtension.EncryptedKeyVersion generateEncryptedKey(String encryptionKeyName)
throws IOException,
GeneralSecurityException
KeyVersion material of the latest key version
of the key and is encrypted using the same cipher.
NOTE: The generated key is not stored by the KeyProvider
encryptionKeyName - The latest KeyVersion of this key's material will be encrypted.
IOException - thrown if the key material could not be generated
GeneralSecurityException - thrown if the key material could not be encrypted because of a
cryptographic issue.
KeyProvider.KeyVersion decryptEncryptedKey(KeyProviderCryptoExtension.EncryptedKeyVersion encryptedKeyVersion)
throws IOException,
GeneralSecurityException
encryptedKeyVersion - contains keyVersionName and IV to decrypt the encrypted key
material
IOException - thrown if the key material could not be decrypted
GeneralSecurityException - thrown if the key material could not be decrypted because of a
cryptographic issue.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||