|
spring-social-security | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 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 |
|---|
public SocialAuthenticationServiceRegistry()
| Method Detail |
|---|
public SocialAuthenticationService<?> getAuthenticationService(java.lang.String providerId)
SocialAuthenticationServiceLocatorSocialAuthenticationService by providerId; for example, "facebook".
getAuthenticationService in interface SocialAuthenticationServiceLocatorpublic void addAuthenticationService(SocialAuthenticationService<?> authenticationService)
SocialAuthenticationService to this registry.
public void setAuthenticationServices(java.lang.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 java.util.Set<java.lang.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
|
spring-social-security | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||