Package org.bouncycastle.crypto.io
Class MacOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.bouncycastle.crypto.io.MacOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class MacOutputStream extends OutputStream
-
-
Constructor Summary
Constructors Constructor Description MacOutputStream(Mac mac)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getMac()
void
write(byte[] b, int off, int len)
void
write(int b)
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
-
-
-
Field Detail
-
mac
protected Mac mac
-
-
Constructor Detail
-
MacOutputStream
public MacOutputStream(Mac mac)
-
-
Method Detail
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
getMac
public byte[] getMac()
-
-