Class AESCryptoService
java.lang.Object
org.apache.accumulo.core.spi.crypto.AESCryptoService
- All Implemented Interfaces:
CryptoService
Example implementation of AES encryption for Accumulo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassNested classes/interfaces inherited from interface org.apache.accumulo.core.spi.crypto.CryptoService
CryptoService.CryptoException -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KeygenerateKey(SecureRandom random, int size) getFileDecrypter(CryptoEnvironment environment) Initialize the FileDecrypter for the environment and return.getFileEncrypter(CryptoEnvironment environment) Initialize the FileEncrypter for the environment and return.voidInitialize CryptoService.static KeyloadKekFromUri(String keyId) static Keystatic byte[]
-
Field Details
-
KEY_URI_PROPERTY
- See Also:
-
ENCRYPT_ENABLED_PROPERTY
- See Also:
-
-
Constructor Details
-
AESCryptoService
public AESCryptoService()
-
-
Method Details
-
init
Description copied from interface:CryptoServiceInitialize CryptoService. This should only be called once.- Specified by:
initin interfaceCryptoService- Throws:
CryptoService.CryptoException
-
getFileEncrypter
Description copied from interface:CryptoServiceInitialize the FileEncrypter for the environment and return. This will get called once per R-File or Write Ahead Log. FileEncrypter implementation is not expected be called by multiple threads.- Specified by:
getFileEncrypterin interfaceCryptoService
-
getFileDecrypter
Description copied from interface:CryptoServiceInitialize the FileDecrypter for the environment and return. This will get called once per R-File or Write Ahead Log. FileDecrypter implementation must be thread safe.- Specified by:
getFileDecrypterin interfaceCryptoService
-
generateKey
-
unwrapKey
-
wrapKey
-
loadKekFromUri
-