@InterfaceAudience.Private @InterfaceStability.Evolving public class AESDecryptor extends Object implements Decryptor
| Constructor and Description |
|---|
AESDecryptor(Cipher cipher) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createDecryptionStream(InputStream in)
Create a stream for decryption
|
int |
getBlockSize()
Get the cipher's internal block size
|
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
|
public AESDecryptor(Cipher cipher)
public int getIvLength()
DecryptorgetIvLength in interface Decryptorpublic int getBlockSize()
DecryptorgetBlockSize in interface Decryptorpublic void setIv(byte[] iv)
Decryptorpublic InputStream createDecryptionStream(InputStream in)
DecryptorcreateDecryptionStream in interface Decryptorpublic void reset()
Decryptorprotected void init()
Copyright © 2014 The Apache Software Foundation. All rights reserved.