Class AESEncryptor
java.lang.Object
org.apache.hadoop.hbase.io.crypto.aes.AESEncryptor
- All Implemented Interfaces:
- Encryptor
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate Cipherprivate booleanprivate byte[]private Keyprivate SecureRandom
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreate a stream for encryptionintGet the cipher's internal block size(package private) Cipherbyte[]getIv()Get the initialization vectorintGet the expected length for the initialization vectorprotected voidinit()voidreset()Reset state, reinitialize with the key and ivvoidsetIv(byte[] iv) Set the initialization vectorvoidSet the secret key
- 
Field Details- 
cipher
- 
rng
- 
key
- 
iv
- 
initialized
 
- 
- 
Constructor Details- 
AESEncryptor
 
- 
- 
Method Details- 
getCipher
- 
setKeyDescription copied from interface:EncryptorSet the secret key
- 
getIvLengthDescription copied from interface:EncryptorGet the expected length for the initialization vector- Specified by:
- getIvLengthin interface- Encryptor
- Returns:
- the expected length for the initialization vector
 
- 
getBlockSizeDescription copied from interface:EncryptorGet the cipher's internal block size- Specified by:
- getBlockSizein interface- Encryptor
- Returns:
- the cipher's internal block size
 
- 
getIvDescription copied from interface:EncryptorGet the initialization vector
- 
setIvDescription copied from interface:EncryptorSet the initialization vector
- 
createEncryptionStreamDescription copied from interface:EncryptorCreate a stream for encryption- Specified by:
- createEncryptionStreamin interface- Encryptor
 
- 
resetDescription copied from interface:EncryptorReset state, reinitialize with the key and iv
- 
init
 
-