| Access | Constructor and Description |
|---|---|
| public | MacOutputStream(Mac
the MAC implementation to use as the basis of the stream. mac)Base constructor - specify the MAC algorithm to use. |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the MAC calculated from the output written to the stream.Execute doFinal() and return the calculated MAC. |
| public void | write(int
the byte value to write. b)Implements abstract java. |
| public void | write(byte[]
byte array holding the data. bytes, int offset into bytes that the data starts at. off, int the length of the data block to write. len)Overrides java. |
| mac | back to summary |
|---|---|
| private Mac mac | |
| MacOutputStream | back to summary |
|---|---|
| public MacOutputStream(Mac mac) Base constructor - specify the MAC algorithm to use.
| |
| getMac | back to summary |
|---|---|
| public byte[] getMac() Execute doFinal() and return the calculated MAC.
| |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Write a single byte to the stream.
| |
| write | back to summary |
|---|---|
| public void write(byte[] bytes, int off, int len) throws IOException Overrides java. Write a block of data of length len starting at offset off in the byte array bytes to the stream.
| |