|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth.common.signature.CoreOAuthSignatureMethodFactory
public class CoreOAuthSignatureMethodFactory
Implements the signatures defined in OAuth Core 1.0. By default, PLAINTEXT signatures are not supported
| Constructor Summary | |
|---|---|
CoreOAuthSignatureMethodFactory()
|
|
| Method Summary | |
|---|---|
org.springframework.security.authentication.encoding.PasswordEncoder |
getPlainTextPasswordEncoder()
The password encoder to use for the plain-text password signature method. |
OAuthSignatureMethod |
getSignatureMethod(String methodName,
SignatureSecret signatureSecret,
String tokenSecret)
Get the signature method of the given name. |
boolean |
isSupportHMAC_SHA1()
Whether to support HMAC-SHA1 signature method. |
boolean |
isSupportPlainText()
Whether to support the plain text signature method. |
boolean |
isSupportRSA_SHA1()
Whether to support RSA-SHA1 signature method. |
void |
setPlainTextPasswordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder plainTextPasswordEncoder)
The password encoder to use for the plain-text password signature method. |
void |
setSupportHMAC_SHA1(boolean supportHMAC_SHA1)
Whether to support HMAC-SHA1 signature method. |
void |
setSupportPlainText(boolean supportPlainText)
Whether to support the plain text signature method. |
void |
setSupportRSA_SHA1(boolean supportRSA_SHA1)
Whether to support RSA-SHA1 signature method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoreOAuthSignatureMethodFactory()
| Method Detail |
|---|
public OAuthSignatureMethod getSignatureMethod(String methodName,
SignatureSecret signatureSecret,
String tokenSecret)
throws UnsupportedSignatureMethodException
OAuthSignatureMethodFactory
getSignatureMethod in interface OAuthSignatureMethodFactorymethodName - The method name.signatureSecret - The signature secret.tokenSecret - The token secret.
UnsupportedSignatureMethodException - If the specified signature method name isn't recognized or supported.public boolean isSupportPlainText()
public void setSupportPlainText(boolean supportPlainText)
supportPlainText - Whether to support the plain text signature method.public boolean isSupportHMAC_SHA1()
public void setSupportHMAC_SHA1(boolean supportHMAC_SHA1)
supportHMAC_SHA1 - Whether to support HMAC-SHA1 signature method.public boolean isSupportRSA_SHA1()
public void setSupportRSA_SHA1(boolean supportRSA_SHA1)
supportRSA_SHA1 - Whether to support RSA-SHA1 signature method.public org.springframework.security.authentication.encoding.PasswordEncoder getPlainTextPasswordEncoder()
public void setPlainTextPasswordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder plainTextPasswordEncoder)
plainTextPasswordEncoder - The password encoder to use for the plain-text password signature method.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||