Class AESCryptoService.AESCBCCryptoModule.AESCBCFileEncrypter
- java.lang.Object
-
- org.apache.accumulo.core.cryptoImpl.AESCryptoService.AESCBCCryptoModule.AESCBCFileEncrypter
-
- All Implemented Interfaces:
FileEncrypter
- Enclosing class:
- AESCryptoService.AESCBCCryptoModule
public class AESCryptoService.AESCBCCryptoModule.AESCBCFileEncrypter extends Object implements FileEncrypter
-
-
Constructor Summary
Constructors Constructor Description AESCBCFileEncrypter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStreamencryptStream(OutputStream outputStream)Encrypt the OutputStream.byte[]getDecryptionParameters()Get all the parameters required for decryption.
-
-
-
Method Detail
-
encryptStream
public OutputStream encryptStream(OutputStream outputStream) throws CryptoService.CryptoException
Description copied from interface:FileEncrypterEncrypt the OutputStream.- Specified by:
encryptStreamin interfaceFileEncrypter- Throws:
CryptoService.CryptoException
-
getDecryptionParameters
public byte[] getDecryptionParameters()
Description copied from interface:FileEncrypterGet all the parameters required for decryption. WARNING: This byte[] will get written as part of the OutputStream as it is returned (either before or after the encrypted data). Do not return any unencrypted sensitive information. For example, return information about the encryption taking place such as version, class name or a wrapped File Encryption Key. This information will get written at the beginning of an encrypted Write Ahead Log (WAL) or at the end of an encrypted R-File. Later, it will be read from the file and passed to theFileDecrypteras part ofCryptoEnvironmentfor everything it needs for decryption.- Specified by:
getDecryptionParametersin interfaceFileEncrypter
-
-