Package org.apache.commons.crypto.stream
Class PositionedCryptoInputStream.CipherState
- java.lang.Object
-
- org.apache.commons.crypto.stream.PositionedCryptoInputStream.CipherState
-
- Enclosing class:
- PositionedCryptoInputStream
private static class PositionedCryptoInputStream.CipherState extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private CryptoCipher
cryptoCipher
private boolean
reset
-
Constructor Summary
Constructors Constructor Description CipherState(CryptoCipher cryptoCipher)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CryptoCipher
getCryptoCipher()
Gets the CryptoCipher instance.boolean
isReset()
Gets the reset.void
reset(boolean reset)
Sets the value of reset.
-
-
-
Field Detail
-
cryptoCipher
private final CryptoCipher cryptoCipher
-
reset
private boolean reset
-
-
Constructor Detail
-
CipherState
public CipherState(CryptoCipher cryptoCipher)
Constructs a new instance.- Parameters:
cryptoCipher
- the CryptoCipher instance.
-
-
Method Detail
-
getCryptoCipher
public CryptoCipher getCryptoCipher()
Gets the CryptoCipher instance.- Returns:
- the cipher.
-
isReset
public boolean isReset()
Gets the reset.- Returns:
- the value of reset.
-
reset
public void reset(boolean reset)
Sets the value of reset.- Parameters:
reset
- the reset.
-
-