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
SocialAuthenticationService s registered in this registry. |
addConnectionFactory, getConnectionFactory, getConnectionFactory, registeredProviderIds, setConnectionFactories
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnectionFactory, getConnectionFactory, registeredProviderIds
public SocialAuthenticationService<?> getAuthenticationService(String providerId)
SocialAuthenticationServiceLocator
SocialAuthenticationService
by providerId; for example, "facebook".getAuthenticationService
in interface SocialAuthenticationServiceLocator
providerId
- the provider ID used to find an authentication servicepublic void addAuthenticationService(SocialAuthenticationService<?> authenticationService)
SocialAuthenticationService
to this registry.authenticationService
- a SocialAuthenticationService to registerpublic void setAuthenticationServices(Iterable<SocialAuthenticationService<?>> authenticationServices)
SocialAuthenticationService
s 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()
SocialAuthenticationServiceLocator
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.registeredAuthenticationProviderIds
in interface SocialAuthenticationServiceLocator