@InterfaceAudience.Private @InterfaceStability.Evolving public class CommonsCryptoAESDecryptor extends Object implements Decryptor
| Modifier and Type | Field and Description |
|---|---|
private String |
cipherMode |
private byte[] |
iv |
private Key |
key |
private Properties |
properties |
| Constructor and Description |
|---|
CommonsCryptoAESDecryptor(String cipherMode,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createDecryptionStream(InputStream in)
Create a stream for decryption n
|
int |
getBlockSize()
Get the cipher's internal block size
|
int |
getIvLength()
Get the expected length for the initialization vector
|
void |
reset()
Reset state, reinitialize with the key and iv
|
void |
setIv(byte[] iv)
Set the initialization vector n
|
void |
setKey(Key key)
Set the secret key n
|
private String cipherMode
private Properties properties
private byte[] iv
public CommonsCryptoAESDecryptor(String cipherMode, Properties properties)
public void setKey(Key key)
Decryptorpublic int getIvLength()
DecryptorgetIvLength in interface Decryptorpublic int getBlockSize()
DecryptorgetBlockSize in interface Decryptorpublic void setIv(byte[] iv)
Decryptorpublic InputStream createDecryptionStream(InputStream in)
DecryptorcreateDecryptionStream in interface DecryptorCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.