@InterfaceAudience.Private @InterfaceStability.Evolving public class AESDecryptor extends Object implements Decryptor
Modifier and Type | Field and Description |
---|---|
private Cipher |
cipher |
private boolean |
initialized |
private byte[] |
iv |
private Key |
key |
Constructor and Description |
---|
AESDecryptor(Cipher cipher) |
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
|
(package private) Cipher |
getCipher() |
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 n
|
void |
setKey(Key key)
Set the secret key n
|
private byte[] iv
private boolean initialized
public AESDecryptor(Cipher cipher)
public void setKey(Key key)
Decryptor
public int getIvLength()
Decryptor
getIvLength
in interface Decryptor
public int getBlockSize()
Decryptor
getBlockSize
in interface Decryptor
public void setIv(byte[] iv)
Decryptor
public InputStream createDecryptionStream(InputStream in)
Decryptor
createDecryptionStream
in interface Decryptor
public void reset()
Decryptor
protected void init()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.