Spring Social

org.springframework.social.security.provider
Class AbstractSocialAuthenticationService<S>

java.lang.Object
  extended by org.springframework.social.security.provider.AbstractSocialAuthenticationService<S>
Type Parameters:
S - The provider API type.
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, SocialAuthenticationService<S>
Direct Known Subclasses:
OAuth1AuthenticationService, OAuth2AuthenticationService

public abstract class AbstractSocialAuthenticationService<S>
extends java.lang.Object
implements SocialAuthenticationService<S>, org.springframework.beans.factory.InitializingBean

Author:
Stefan Fussennegger

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.social.security.provider.SocialAuthenticationService
SocialAuthenticationService.ConnectionCardinality
 
Constructor Summary
AbstractSocialAuthenticationService()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.lang.String getConnectionAddedRedirectUrl(javax.servlet.http.HttpServletRequest request, Connection<?> connection)
           
 SocialAuthenticationService.ConnectionCardinality getConnectionCardinality()
           
 void setConnectionAddedRedirectUrl(java.lang.String connectionAddedRedirectUrl)
           
 void setConnectionCardinality(SocialAuthenticationService.ConnectionCardinality connectionCardinality)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.social.security.provider.SocialAuthenticationService
getAuthToken, getConnectionFactory
 

Constructor Detail

AbstractSocialAuthenticationService

public AbstractSocialAuthenticationService()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

getConnectionCardinality

public SocialAuthenticationService.ConnectionCardinality getConnectionCardinality()
Specified by:
getConnectionCardinality in interface SocialAuthenticationService<S>
Returns:
SocialAuthenticationService.ConnectionCardinality for connections to this provider

setConnectionCardinality

public void setConnectionCardinality(SocialAuthenticationService.ConnectionCardinality connectionCardinality)

getConnectionAddedRedirectUrl

public java.lang.String getConnectionAddedRedirectUrl(javax.servlet.http.HttpServletRequest request,
                                                      Connection<?> connection)
Specified by:
getConnectionAddedRedirectUrl in interface SocialAuthenticationService<S>
Returns:
null to use filter default

setConnectionAddedRedirectUrl

public void setConnectionAddedRedirectUrl(java.lang.String connectionAddedRedirectUrl)

Spring Social