Package org.bouncycastle.cms
Class InputStreamWithMAC
- java.lang.Object
-
- java.io.InputStream
-
- org.bouncycastle.cms.InputStreamWithMAC
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public final class InputStreamWithMAC extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description InputStreamWithMAC(java.io.InputStream base, byte[] mac)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getMAC()
int
read()
int
read(byte[] b, int off, int len)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
getMAC
public byte[] getMAC()
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-