public final class HmacOutputStream extends FilterOutputStream
OutputStream to pass all written bytes through a Mac.out| Constructor and Description |
|---|
HmacOutputStream(OutputStream stream,
Mac mac) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(byte[] data,
int offset,
int length) |
void |
write(int data) |
close, flush, writepublic HmacOutputStream(OutputStream stream, Mac mac)
stream - the stream to wrapmac - the digest to updatepublic void write(int data)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(byte[] data,
int offset,
int length)
throws IOException
write in class FilterOutputStreamIOExceptionCopyright © 2017. All rights reserved.