Package org.bouncycastle.crypto.io
Class MacInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.bouncycastle.crypto.io.MacInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class MacInputStream extends FilterInputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected Mac
mac
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description MacInputStream(InputStream stream, Mac mac)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mac
getMac()
int
read()
int
read(byte[] b, int off, int len)
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Field Detail
-
mac
protected Mac mac
-
-
Constructor Detail
-
MacInputStream
public MacInputStream(InputStream stream, Mac mac)
-
-
Method Detail
-
read
public int read() throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
getMac
public Mac getMac()
-
-