|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.rs.security.oauth2.tokens.mac.HmacUtils
public final class HmacUtils
Method Summary | |
---|---|
static byte[] |
computeHmac(String key,
HmacAlgorithm algo,
String data)
Computes HMAC value using the given parameters. |
static byte[] |
computeHmac(String key,
String macAlgoJavaName,
String data)
Computes HMAC value using the given parameters. |
static String |
computeHmacString(String macSecret,
String macAlgoJavaName,
String data)
Computes HMAC value using the given parameters. |
static String |
computeSignature(String macAlgoOAuthName,
String macSecret,
String data)
|
static String |
generateSecret(HmacAlgorithm algo)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String computeSignature(String macAlgoOAuthName, String macSecret, String data)
public static String computeHmacString(String macSecret, String macAlgoJavaName, String data)
macSecret
- macAlgorithm
- Should be one of HmacSHA1 or HmacSHA256data
-
public static byte[] computeHmac(String key, HmacAlgorithm algo, String data)
macKey
- macAlgorithm
- data
-
public static byte[] computeHmac(String key, String macAlgoJavaName, String data)
macKey
- macAlgorithm
- data
-
public static String generateSecret(HmacAlgorithm algo)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |