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, 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 afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractSocialAuthenticationService<S>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 String buildReturnToUrl(javax.servlet.http.HttpServletRequest request)