Package org.bouncycastle.operator
Class MacCaptureStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.bouncycastle.operator.MacCaptureStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class MacCaptureStream extends OutputStream
A generic class for capturing the mac data at the end of a encrypted data stream.Note: this class will not close the underlying stream.
-
-
Constructor Summary
Constructors Constructor Description MacCaptureStream(OutputStream cOut, int macLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getMac()
void
write(byte[] buf, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
-
-
-
Constructor Detail
-
MacCaptureStream
public MacCaptureStream(OutputStream cOut, int macLength)
-
-
Method Detail
-
write
public void write(byte[] buf, int off, int len) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
getMac
public byte[] getMac()
-
-