|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth.common.signature.HMAC_SHA1SignatureMethod
public class HMAC_SHA1SignatureMethod
HMAC-SHA1 signature method.
| Field Summary | |
|---|---|
static String |
MAC_NAME
The MAC name (for interfacing with javax.crypto.*). |
static String |
SIGNATURE_NAME
The name of this HMAC-SHA1 signature method ("HMAC-SHA1"). |
| Constructor Summary | |
|---|---|
HMAC_SHA1SignatureMethod(SecretKey key)
Construct a HMAC-SHA1 signature method with the given HMAC-SHA1 key. |
|
| Method Summary | |
|---|---|
String |
getName()
The name of this HMAC-SHA1 signature method ("HMAC-SHA1"). |
SecretKey |
getSecretKey()
The secret key. |
String |
sign(String signatureBaseString)
Sign the signature base string. |
void |
verify(String signatureBaseString,
String signature)
Verify the signature of the given signature base string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SIGNATURE_NAME
public static final String MAC_NAME
| Constructor Detail |
|---|
public HMAC_SHA1SignatureMethod(SecretKey key)
key - The key.| Method Detail |
|---|
public String getName()
getName in interface OAuthSignatureMethodpublic String sign(String signatureBaseString)
sign in interface OAuthSignatureMethodsignatureBaseString - The signature base string.
public void verify(String signatureBaseString,
String signature)
throws InvalidSignatureException
verify in interface OAuthSignatureMethodsignatureBaseString - The signature base string.signature - The signature.
InvalidSignatureException - If the signature is invalid for the specified base string.public SecretKey getSecretKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||