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 |
getInitializedMac(String algorithm,
Key key,
String provider) |
static Mac |
getMac(String algorithm) |
static Mac |
getMac(String algorithm,
String provider) |
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 JoseException
JoseExceptionpublic static Mac getInitializedMac(String algorithm, Key key, String provider) throws JoseException
JoseExceptionpublic static Mac getMac(String algorithm) throws JoseException
JoseExceptionpublic static Mac getMac(String algorithm, String provider) throws JoseException
JoseExceptionpublic static void initMacWithKey(Mac mac, Key key) throws InvalidKeyException
InvalidKeyExceptionCopyright © 2018. All rights reserved.