Interface CryptoService
- All Known Implementing Classes:
- AESCryptoService,- NoCryptoService
public interface CryptoService
A self-contained cryptographic service. All on disk encryption and decryption will take place
 through this interface. Each implementation must implement a 
FileEncrypter for encryption
 and a FileDecrypter for decryption.- Since:
- 2.0
- See Also:
- 
- org.apache.accumulo.core.spi
 
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classRuntime Crypto exception
- 
Method SummaryModifier and TypeMethodDescriptiongetFileDecrypter(CryptoEnvironment environment) Initialize the FileDecrypter for the environment and return.getFileEncrypter(CryptoEnvironment environment) Initialize the FileEncrypter for the environment and return.voidInitialize CryptoService.
- 
Method Details- 
initInitialize CryptoService. This should only be called once.- Throws:
- CryptoService.CryptoException
 
- 
getFileEncrypterInitialize 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.
- 
getFileDecrypterInitialize 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.
 
-