public class SocialAuthenticationServiceRegistry extends ConnectionFactoryRegistry implements SocialAuthenticationServiceLocator
| Constructor and Description |
|---|
SocialAuthenticationServiceRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuthenticationService(SocialAuthenticationService<?> authenticationService)
Add a
SocialAuthenticationService to this registry. |
SocialAuthenticationService<?> |
getAuthenticationService(String providerId)
Lookup a
SocialAuthenticationService by providerId; for example, "facebook". |
Set<String> |
registeredAuthenticationProviderIds()
Returns the set of providerIds for which a
SocialAuthenticationService is registered; for example, {"twitter", "facebook", "foursquare" }. |
void |
setAuthenticationServices(Iterable<SocialAuthenticationService<?>> authenticationServices)
Set the group of
SocialAuthenticationServices registered in this registry. |
addConnectionFactory, getConnectionFactory, getConnectionFactory, registeredProviderIds, setConnectionFactoriesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionFactory, getConnectionFactory, registeredProviderIdspublic SocialAuthenticationService<?> getAuthenticationService(String providerId)
SocialAuthenticationServiceLocatorSocialAuthenticationService by providerId; for example, "facebook".getAuthenticationService in interface SocialAuthenticationServiceLocatorpublic void addAuthenticationService(SocialAuthenticationService<?> authenticationService)
SocialAuthenticationService to this registry.public void setAuthenticationServices(Iterable<SocialAuthenticationService<?>> authenticationServices)
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).authenticationServices - the set of social authentication services to registerpublic Set<String> registeredAuthenticationProviderIds()
SocialAuthenticationServiceLocatorSocialAuthenticationService is registered; for example, {"twitter", "facebook", "foursquare" }.
Elements in this set can be passed to SocialAuthenticationServiceLocator.getAuthenticationService(String) to fetch a specific authentication service.registeredAuthenticationProviderIds in interface SocialAuthenticationServiceLocator