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