|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.social.connect.support.ConnectionFactoryRegistry org.springframework.social.security.SocialAuthenticationServiceRegistry
public class SocialAuthenticationServiceRegistry
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 SocialAuthenticationService s 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 |
---|
public SocialAuthenticationServiceRegistry()
Method Detail |
---|
public SocialAuthenticationService<?> getAuthenticationService(java.lang.String providerId)
SocialAuthenticationServiceLocator
SocialAuthenticationService
by providerId; for example, "facebook".
getAuthenticationService
in interface SocialAuthenticationServiceLocator
public void addAuthenticationService(SocialAuthenticationService<?> authenticationService)
SocialAuthenticationService
to this registry.
public void setAuthenticationServices(java.lang.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 java.util.Set<java.lang.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
|
Spring Social | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |