public final class HmacInputStream extends FilterInputStream
InputStream
to pass all read bytes to a Mac
.in
Constructor and Description |
---|
HmacInputStream(InputStream stream,
Mac mac) |
Modifier and Type | Method and Description |
---|---|
int |
read() |
int |
read(byte[] data,
int offset,
int length) |
available, close, mark, markSupported, read, reset, skip
public HmacInputStream(InputStream stream, Mac mac)
stream
- the wrapped streammac
- the digest to updatepublic int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] data, int offset, int length) throws IOException
read
in class FilterInputStream
IOException
Copyright © 2017. All rights reserved.