Package org.bouncycastle.operator
Class MacCaptureStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.bouncycastle.operator.MacCaptureStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class MacCaptureStream extends java.io.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(java.io.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)
-
-
-
Method Detail
-
write
public void write(byte[] buf, int off, int len) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
getMac
public byte[] getMac()
-
-