public final class HmacUtils extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
computeHmac(byte[] key,
Mac hmac,
String data) |
static byte[] |
computeHmac(byte[] key,
String macAlgoJavaName,
AlgorithmParameterSpec spec,
String data) |
static byte[] |
computeHmac(byte[] key,
String macAlgoJavaName,
String data) |
static byte[] |
computeHmac(Key secretKey,
Mac hmac,
AlgorithmParameterSpec spec,
String data) |
static byte[] |
computeHmac(Key secretKey,
Mac hmac,
String data) |
static byte[] |
computeHmac(String key,
Mac hmac,
String data) |
static byte[] |
computeHmac(String key,
String macAlgoJavaName,
String data) |
static String |
encodeHmacString(String macSecret,
String macAlgoJavaName,
String data) |
static String |
encodeHmacString(String macSecret,
String macAlgoJavaName,
String data,
boolean urlSafe) |
static String |
generateKey(String algo) |
static Mac |
getInitializedMac(byte[] key,
String algo,
AlgorithmParameterSpec spec) |
static Mac |
getMac(String macAlgoJavaName) |
static Mac |
getMac(String macAlgoJavaName,
Provider provider) |
static Mac |
getMac(String macAlgoJavaName,
String provider) |
public static String encodeHmacString(String macSecret, String macAlgoJavaName, String data)
public static String encodeHmacString(String macSecret, String macAlgoJavaName, String data, boolean urlSafe)
public static byte[] computeHmac(byte[] key, String macAlgoJavaName, AlgorithmParameterSpec spec, String data)
public static byte[] computeHmac(Key secretKey, Mac hmac, AlgorithmParameterSpec spec, String data)
public static Mac getInitializedMac(byte[] key, String algo, AlgorithmParameterSpec spec)
Apache CXF