Spring Social

org.springframework.social.security.provider
Interface SocialAuthenticationService<S>

Type Parameters:
S - The provider's API type.
All Known Implementing Classes:
AbstractSocialAuthenticationService, OAuth1AuthenticationService, OAuth2AuthenticationService

public interface SocialAuthenticationService<S>

Authentication for social ConnectionFactory

Author:
Stefan Fussennegger

Nested Class Summary
static class SocialAuthenticationService.ConnectionCardinality
           
 
Method Summary
 SocialAuthenticationToken getAuthToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          extract SocialAuthenticationToken from request
 java.lang.String getConnectionAddedRedirectUrl(javax.servlet.http.HttpServletRequest request, Connection<?> connection)
           
 SocialAuthenticationService.ConnectionCardinality getConnectionCardinality()
           
 ConnectionFactory<S> getConnectionFactory()
           
 

Method Detail

getConnectionCardinality

SocialAuthenticationService.ConnectionCardinality getConnectionCardinality()
Returns:
SocialAuthenticationService.ConnectionCardinality for connections to this provider

getConnectionFactory

ConnectionFactory<S> getConnectionFactory()
Returns:
ConnectionFactory used for authentication

getAuthToken

SocialAuthenticationToken getAuthToken(javax.servlet.http.HttpServletRequest request,
                                       javax.servlet.http.HttpServletResponse response)
                                       throws SocialAuthenticationRedirectException
extract SocialAuthenticationToken from request

Parameters:
request - current HttpServletRequest
response - current HttpServletResponse
Returns:
new unauthenticated token or null
Throws:
SocialAuthenticationRedirectException - if social auth requires a redirect, e.g. OAuth

getConnectionAddedRedirectUrl

java.lang.String getConnectionAddedRedirectUrl(javax.servlet.http.HttpServletRequest request,
                                               Connection<?> connection)
Parameters:
request -
connection -
Returns:
null to use filter default

Spring Social