Spring Social

org.springframework.social.security
Class SocialAuthenticationServiceRegistry

java.lang.Object
  extended by org.springframework.social.connect.support.ConnectionFactoryRegistry
      extended by org.springframework.social.security.SocialAuthenticationServiceRegistry
All Implemented Interfaces:
ConnectionFactoryLocator, SocialAuthenticationServiceLocator

public class SocialAuthenticationServiceRegistry
extends ConnectionFactoryRegistry
implements SocialAuthenticationServiceLocator


Constructor Summary
SocialAuthenticationServiceRegistry()
           
 
Method Summary
 void addAuthenticationService(SocialAuthenticationService<?> authenticationService)
          Add a SocialAuthenticationService to this registry.
 SocialAuthenticationService<?> getAuthenticationService(java.lang.String providerId)
          Lookup a SocialAuthenticationService by providerId; for example, "facebook".
 java.util.Set<java.lang.String> registeredAuthenticationProviderIds()
          Returns the set of providerIds for which a SocialAuthenticationService is registered; for example, {"twitter", "facebook", "foursquare" }.
 void setAuthenticationServices(java.lang.Iterable<SocialAuthenticationService<?>> authenticationServices)
          Set the group of SocialAuthenticationServices registered in this registry.
 
Methods inherited from class org.springframework.social.connect.support.ConnectionFactoryRegistry
addConnectionFactory, getConnectionFactory, getConnectionFactory, registeredProviderIds, setConnectionFactories
 
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.connect.ConnectionFactoryLocator
getConnectionFactory, getConnectionFactory, registeredProviderIds
 

Constructor Detail

SocialAuthenticationServiceRegistry

public SocialAuthenticationServiceRegistry()
Method Detail

getAuthenticationService

public SocialAuthenticationService<?> getAuthenticationService(java.lang.String providerId)
Description copied from interface: SocialAuthenticationServiceLocator
Lookup a SocialAuthenticationService by providerId; for example, "facebook".

Specified by:
getAuthenticationService in interface SocialAuthenticationServiceLocator

addAuthenticationService

public void addAuthenticationService(SocialAuthenticationService<?> authenticationService)
Add a SocialAuthenticationService to this registry.


setAuthenticationServices

public void setAuthenticationServices(java.lang.Iterable<SocialAuthenticationService<?>> authenticationServices)
Set the group of SocialAuthenticationServices registered in this registry. JavaBean setter that allows for this object to be more easily configured by tools. For programmatic configuration, prefer addAuthenticationService(SocialAuthenticationService).

Parameters:
authenticationServices - the set of social authentication services to register

registeredAuthenticationProviderIds

public java.util.Set<java.lang.String> registeredAuthenticationProviderIds()
Description copied from interface: SocialAuthenticationServiceLocator
Returns the set of providerIds for which a SocialAuthenticationService is registered; for example, {"twitter", "facebook", "foursquare" }. Elements in this set can be passed to SocialAuthenticationServiceLocator.getAuthenticationService(String) to fetch a specific authentication service.

Specified by:
registeredAuthenticationProviderIds in interface SocialAuthenticationServiceLocator

Spring Social