|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.io.crypto.aes.AESEncryptor
@InterfaceAudience.Private @InterfaceStability.Evolving public class AESEncryptor
| Constructor Summary | |
|---|---|
AESEncryptor(Cipher cipher,
SecureRandom rng)
|
|
| Method Summary | |
|---|---|
OutputStream |
createEncryptionStream(OutputStream out)
Create a stream for encryption |
int |
getBlockSize()
Get the cipher's internal block size |
byte[] |
getIv()
Get the initialization vector |
int |
getIvLength()
Get the expected length for the initialization vector |
protected void |
init()
|
void |
reset()
Reset state, reinitialize with the key and iv |
void |
setIv(byte[] iv)
Set the initialization vector |
void |
setKey(Key key)
Set the secret key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AESEncryptor(Cipher cipher,
SecureRandom rng)
| Method Detail |
|---|
public void setKey(Key key)
Encryptor
setKey in interface Encryptorpublic int getIvLength()
Encryptor
getIvLength in interface Encryptorpublic int getBlockSize()
Encryptor
getBlockSize in interface Encryptorpublic byte[] getIv()
Encryptor
getIv in interface Encryptorpublic void setIv(byte[] iv)
Encryptor
setIv in interface Encryptorpublic OutputStream createEncryptionStream(OutputStream out)
Encryptor
createEncryptionStream in interface Encryptorpublic void reset()
Encryptor
reset in interface Encryptorprotected void init()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||