Class SocialAuthenticationServiceRegistry
- java.lang.Object
-
- org.springframework.social.connect.support.ConnectionFactoryRegistry
-
- org.springframework.social.security.SocialAuthenticationServiceRegistry
-
- All Implemented Interfaces:
ConnectionFactoryLocator,SocialAuthenticationServiceLocator
public class SocialAuthenticationServiceRegistry extends ConnectionFactoryRegistry implements SocialAuthenticationServiceLocator
-
-
Constructor Summary
Constructors Constructor Description SocialAuthenticationServiceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAuthenticationService(SocialAuthenticationService<?> authenticationService)Add aSocialAuthenticationServiceto this registry.SocialAuthenticationService<?>getAuthenticationService(String providerId)Lookup aSocialAuthenticationServiceby providerId; for example, "facebook".Set<String>registeredAuthenticationProviderIds()Returns the set of providerIds for which aSocialAuthenticationServiceis registered; for example,{"twitter", "facebook", "foursquare" }.voidsetAuthenticationServices(Iterable<SocialAuthenticationService<?>> authenticationServices)Set the group ofSocialAuthenticationServices 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
-
-
-
-
Method Detail
-
getAuthenticationService
public SocialAuthenticationService<?> getAuthenticationService(String providerId)
Description copied from interface:SocialAuthenticationServiceLocatorLookup aSocialAuthenticationServiceby providerId; for example, "facebook".- Specified by:
getAuthenticationServicein interfaceSocialAuthenticationServiceLocator
-
addAuthenticationService
public void addAuthenticationService(SocialAuthenticationService<?> authenticationService)
Add aSocialAuthenticationServiceto this registry.
-
setAuthenticationServices
public void setAuthenticationServices(Iterable<SocialAuthenticationService<?>> authenticationServices)
Set the group ofSocialAuthenticationServices registered in this registry. JavaBean setter that allows for this object to be more easily configured by tools. For programmatic configuration, preferaddAuthenticationService(SocialAuthenticationService).- Parameters:
authenticationServices- the set of social authentication services to register
-
registeredAuthenticationProviderIds
public Set<String> registeredAuthenticationProviderIds()
Description copied from interface:SocialAuthenticationServiceLocatorReturns the set of providerIds for which aSocialAuthenticationServiceis registered; for example,{"twitter", "facebook", "foursquare" }. Elements in this set can be passed toSocialAuthenticationServiceLocator.getAuthenticationService(String)to fetch a specific authentication service.- Specified by:
registeredAuthenticationProviderIdsin interfaceSocialAuthenticationServiceLocator
-
-