gnu.crypto.mac
public class MacInputStream extends FilterInputStream
Version: $Revision: 1.2 $
| Constructor Summary | |
|---|---|
| MacInputStream(InputStream in, IMac mac)
Creates a new MacInputStream. | |
| Method Summary | |
|---|---|
| IMac | getMac()
Returns the MAC this stream is updating.
|
| void | on(boolean flag)
Turns the digesting state on or off. |
| int | read() |
| int | read(byte[] buf, int off, int len) |
| void | setMac(IMac mac)
Sets the MAC this stream is updating, which must have already been
initialized. |
Parameters: in The underlying input stream. mac The mac instance to use.
Returns: The MAC.
Parameters: flag The new digesting state.
Parameters: mac The new MAC.
Throws: NullPointerException If the argument is null.