S - The provider's API type.public class OAuth1AuthenticationService<S> extends AbstractSocialAuthenticationService<S> implements InitializingBean
SocialAuthenticationService.ConnectionCardinality| Constructor and Description |
|---|
OAuth1AuthenticationService(org.springframework.social.connect.support.OAuth1ConnectionFactory<S> connectionFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected String |
buildReturnToUrl(HttpServletRequest request) |
SocialAuthenticationToken |
getAuthToken(HttpServletRequest request,
HttpServletResponse response)
extract
SocialAuthenticationToken from request |
org.springframework.social.connect.support.OAuth1ConnectionFactory<S> |
getConnectionFactory() |
Set<String> |
getReturnToUrlParameters() |
void |
setConnectionFactory(org.springframework.social.connect.support.OAuth1ConnectionFactory<S> connectionFactory) |
void |
setReturnToUrlParameters(Set<String> returnToUrlParameters) |
getConnectionAddedRedirectUrl, getConnectionCardinality, setConnectionAddedRedirectUrl, setConnectionCardinalitypublic OAuth1AuthenticationService(org.springframework.social.connect.support.OAuth1ConnectionFactory<S> connectionFactory)
public org.springframework.social.connect.support.OAuth1ConnectionFactory<S> getConnectionFactory()
getConnectionFactory in interface SocialAuthenticationService<S>ConnectionFactory used for authenticationpublic void setConnectionFactory(org.springframework.social.connect.support.OAuth1ConnectionFactory<S> connectionFactory)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractSocialAuthenticationService<S>Exceptionpublic SocialAuthenticationToken getAuthToken(HttpServletRequest request, 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(HttpServletRequest request)