Interface CryptoService
-
- All Known Implementing Classes:
AESCryptoService,NoCryptoService
public interface CryptoServiceSelf contained cryptographic service. All on disk encryption and decryption will take place through this interface. Each implementation must implement aFileEncrypterfor encryption and aFileDecrypterfor decryption.- Since:
- 2.0
- See Also:
org.apache.accumulo.core.spi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCryptoService.CryptoExceptionRuntime Crypto exception
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileDecryptergetFileDecrypter(CryptoEnvironment environment)Initialize the FileDecrypter for the environment and return.FileEncryptergetFileEncrypter(CryptoEnvironment environment)Initialize the FileEncrypter for the environment and return.voidinit(Map<String,String> conf)Initialize CryptoService.
-
-
-
Method Detail
-
init
void init(Map<String,String> conf) throws CryptoService.CryptoException
Initialize CryptoService. This is called once at Tablet Server startup.- Throws:
CryptoService.CryptoException
-
getFileEncrypter
FileEncrypter getFileEncrypter(CryptoEnvironment environment)
Initialize the FileEncrypter for the environment and return. This will get called once per R-File or Write Ahead Log. FileEncrypter implementation must be thread safe.
-
getFileDecrypter
FileDecrypter getFileDecrypter(CryptoEnvironment environment)
Initialize 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.
-
-