| Modifier and Type | Field and Description |
|---|---|
protected SignatureAlgorithm |
alg |
protected Key |
key |
| Constructor and Description |
|---|
MacSigner(SignatureAlgorithm alg,
byte[] key) |
MacSigner(SignatureAlgorithm alg,
Key key) |
| Modifier and Type | Method and Description |
|---|---|
protected Mac |
doGetMacInstance() |
protected Mac |
getMacInstance() |
byte[] |
sign(byte[] data) |
protected final SignatureAlgorithm alg
protected final Key key
public MacSigner(SignatureAlgorithm alg, byte[] key)
public MacSigner(SignatureAlgorithm alg, Key key)
protected Mac getMacInstance() throws SignatureException
SignatureExceptionprotected Mac doGetMacInstance() throws NoSuchAlgorithmException, InvalidKeyException
Copyright © 2014. All rights reserved.