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, write
public HmacOutputStream(OutputStream stream, Mac mac)
stream
- the stream to wrapmac
- the digest to updatepublic void write(int data) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] data, int offset, int length) throws IOException
write
in class FilterOutputStream
IOException
Copyright © 2017. All rights reserved.