public class CoreOAuthSignatureMethodFactory extends Object implements OAuthSignatureMethodFactory
Constructor and Description |
---|
CoreOAuthSignatureMethodFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
public OAuthSignatureMethod getSignatureMethod(String methodName, SignatureSecret signatureSecret, String tokenSecret) throws UnsupportedSignatureMethodException
OAuthSignatureMethodFactory
getSignatureMethod
in interface OAuthSignatureMethodFactory
methodName
- 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.Copyright © 2019. All rights reserved.