public abstract class ProviderConfigurationSupport
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<?> |
apiBindingType |
protected java.lang.Class<? extends ApiHelper<?>> |
apiHelperClass |
protected java.lang.Class<?> |
authenticationServiceClass |
protected java.lang.Class<? extends org.springframework.social.connect.ConnectionFactory<?>> |
connectionFactoryClass |
| Constructor and Description |
|---|
ProviderConfigurationSupport(java.lang.Class<? extends org.springframework.social.connect.ConnectionFactory<?>> connectionFactoryClass,
java.lang.Class<? extends ApiHelper<?>> apiHelperClass) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
getAppId(java.util.Map<java.lang.String,java.lang.Object> allAttributes) |
protected abstract java.lang.String |
getAppSecret(java.util.Map<java.lang.String,java.lang.Object> allAttributes) |
protected org.springframework.beans.factory.config.BeanDefinition |
getAuthenticationServiceBeanDefinition(java.lang.String appId,
java.lang.String appSecret,
java.util.Map<java.lang.String,java.lang.Object> allAttributes) |
protected java.lang.Class<? extends org.springframework.social.security.provider.SocialAuthenticationService<?>> |
getAuthenticationServiceClass() |
protected org.springframework.beans.factory.config.BeanDefinition |
getConnectionFactoryBeanDefinition(java.lang.String appId,
java.lang.String appSecret,
java.util.Map<java.lang.String,java.lang.Object> allAttributes)
Creates a BeanDefinition for a provider connection factory.
|
protected static boolean |
isSocialSecurityAvailable() |
protected org.springframework.beans.factory.config.BeanDefinition |
registerBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
java.util.Map<java.lang.String,java.lang.Object> allAttributes) |
protected final java.lang.Class<? extends org.springframework.social.connect.ConnectionFactory<?>> connectionFactoryClass
protected final java.lang.Class<? extends ApiHelper<?>> apiHelperClass
protected final java.lang.Class<?> apiBindingType
protected java.lang.Class<?> authenticationServiceClass
public ProviderConfigurationSupport(java.lang.Class<? extends org.springframework.social.connect.ConnectionFactory<?>> connectionFactoryClass,
java.lang.Class<? extends ApiHelper<?>> apiHelperClass)
protected java.lang.Class<? extends org.springframework.social.security.provider.SocialAuthenticationService<?>> getAuthenticationServiceClass()
protected static boolean isSocialSecurityAvailable()
protected org.springframework.beans.factory.config.BeanDefinition getConnectionFactoryBeanDefinition(java.lang.String appId,
java.lang.String appSecret,
java.util.Map<java.lang.String,java.lang.Object> allAttributes)
appId - The application's App IDappSecret - The application's App SecretallAttributes - All attributes available on the configuration element. Useful for provider-specific configuration.protected org.springframework.beans.factory.config.BeanDefinition getAuthenticationServiceBeanDefinition(java.lang.String appId,
java.lang.String appSecret,
java.util.Map<java.lang.String,java.lang.Object> allAttributes)
protected org.springframework.beans.factory.config.BeanDefinition registerBeanDefinitions(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
java.util.Map<java.lang.String,java.lang.Object> allAttributes)
protected abstract java.lang.String getAppId(java.util.Map<java.lang.String,java.lang.Object> allAttributes)
protected abstract java.lang.String getAppSecret(java.util.Map<java.lang.String,java.lang.Object> allAttributes)