|
||||||||||
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 Encryptor
public int getIvLength()
Encryptor
getIvLength
in interface Encryptor
public int getBlockSize()
Encryptor
getBlockSize
in interface Encryptor
public byte[] getIv()
Encryptor
getIv
in interface Encryptor
public void setIv(byte[] iv)
Encryptor
setIv
in interface Encryptor
public OutputStream createEncryptionStream(OutputStream out)
Encryptor
createEncryptionStream
in interface Encryptor
public void reset()
Encryptor
reset
in interface Encryptor
protected void init()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |