S - The provider's API type.public class OAuth1AuthenticationService<S> extends AbstractSocialAuthenticationService<S> implements org.springframework.beans.factory.InitializingBean
SocialAuthenticationService.ConnectionCardinality| Constructor and Description |
|---|
OAuth1AuthenticationService(OAuth1ConnectionFactory<S> connectionFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected java.lang.String |
buildReturnToUrl(javax.servlet.http.HttpServletRequest request) |
SocialAuthenticationToken |
getAuthToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
extract
SocialAuthenticationToken from request |
OAuth1ConnectionFactory<S> |
getConnectionFactory() |
java.util.Set<java.lang.String> |
getReturnToUrlParameters() |
void |
setConnectionFactory(OAuth1ConnectionFactory<S> connectionFactory) |
void |
setReturnToUrlParameters(java.util.Set<java.lang.String> returnToUrlParameters) |
getConnectionAddedRedirectUrl, getConnectionCardinality, setConnectionAddedRedirectUrl, setConnectionCardinalitypublic OAuth1AuthenticationService(OAuth1ConnectionFactory<S> connectionFactory)
public OAuth1ConnectionFactory<S> getConnectionFactory()
getConnectionFactory in interface SocialAuthenticationService<S>ConnectionFactory used for authenticationpublic void setConnectionFactory(OAuth1ConnectionFactory<S> connectionFactory)
public void setReturnToUrlParameters(java.util.Set<java.lang.String> returnToUrlParameters)
public java.util.Set<java.lang.String> getReturnToUrlParameters()
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractSocialAuthenticationService<S>java.lang.Exceptionpublic SocialAuthenticationToken getAuthToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws SocialAuthenticationRedirectException
SocialAuthenticationServiceSocialAuthenticationToken from requestgetAuthToken in interface SocialAuthenticationService<S>request - current HttpServletRequestresponse - current HttpServletResponseSocialAuthenticationRedirectException - if social auth requires a redirect, e.g. OAuthprotected java.lang.String buildReturnToUrl(javax.servlet.http.HttpServletRequest request)