public class MacUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HMAC_SHA256 |
static String |
HMAC_SHA384 |
static String |
HMAC_SHA512 |
| Constructor and Description |
|---|
MacUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Mac |
getInitializedMac(String algorithm,
Key key) |
static Mac |
getMac(String algorithm) |
static void |
initMacWithKey(Mac mac,
Key key) |
public static final String HMAC_SHA256
public static final String HMAC_SHA384
public static final String HMAC_SHA512
public static Mac getInitializedMac(String algorithm, Key key) throws InvalidKeyException
InvalidKeyExceptionpublic static void initMacWithKey(Mac mac, Key key) throws InvalidKeyException
InvalidKeyExceptionCopyright © 2015. All rights reserved.