public class HmacSHA256
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.crypto.Mac |
mac |
| Constructor and Description |
|---|
HmacSHA256(byte[] key,
int off,
int len) |
HmacSHA256(Codec sink,
byte[] key,
int off,
int len) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest() |
void |
flush() |
void |
update(byte c) |
void |
update(byte[] data,
int off,
int len) |
public HmacSHA256(Codec sink, byte[] key, int off, int len)
public HmacSHA256(byte[] key,
int off,
int len)
public void update(byte c)
throws CodecException
update in interface CodecCodecExceptionpublic void update(byte[] data,
int off,
int len)
throws CodecException
update in interface CodecCodecExceptionpublic void flush()
throws CodecException
flush in interface CodecCodecExceptionpublic byte[] digest()