Package de.mhus.lib.core.crypt
Class CipherInputStream
- java.lang.Object
-
- java.io.InputStream
-
- de.mhus.lib.core.crypt.CipherInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class CipherInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description CipherInputStream(InputStream is)CipherInputStream(InputStream is, CipherBlock cipher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CipherBlockgetCipher()intread()voidsetCipher(CipherBlock cipher)-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
CipherInputStream
public CipherInputStream(InputStream is)
-
CipherInputStream
public CipherInputStream(InputStream is, CipherBlock cipher)
-
-
Method Detail
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
getCipher
public CipherBlock getCipher()
-
setCipher
public void setCipher(CipherBlock cipher)
-
-