|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth.common.signature.PlainTextSignatureMethod
public class PlainTextSignatureMethod
Plain text signature method.
| Field Summary | |
|---|---|
static String |
SIGNATURE_NAME
The name of this plain text signature method ("PLAINTEXT"). |
| Constructor Summary | |
|---|---|
PlainTextSignatureMethod(String secret)
Construct a plain text signature method with the given plain-text secret. |
|
PlainTextSignatureMethod(String secret,
org.springframework.security.authentication.encoding.PasswordEncoder encoder,
Object salt)
Construct a plain text signature method with the given plain-text secret. |
|
| Method Summary | |
|---|---|
String |
getName()
The name of this plain text signature method ("PLAINTEXT"). |
String |
getSecret()
The secret. |
String |
sign(String signatureBaseString)
The signature is the same as the secret. |
void |
verify(String signatureBaseString,
String signature)
Validates that the signature is the same as the secret. |
| 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
| Constructor Detail |
|---|
public PlainTextSignatureMethod(String secret)
secret - The secret.
public PlainTextSignatureMethod(String secret,
org.springframework.security.authentication.encoding.PasswordEncoder encoder,
Object salt)
secret - The secret.encoder - The password encoder, or null if none is to be used.salt - The salt for the secret, if any.| Method Detail |
|---|
public String getName()
getName in interface OAuthSignatureMethodpublic String sign(String signatureBaseString)
sign in interface OAuthSignatureMethodsignatureBaseString - The signature base string (unimportant, ignored).
public void verify(String signatureBaseString,
String signature)
throws InvalidSignatureException
verify in interface OAuthSignatureMethodsignatureBaseString - The signature base string (unimportant, ignored).signature - The signature.
InvalidSignatureException - If the signature is not the same as the secret.public String getSecret()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||