Class FlowableLdapAuthenticationProviderFactory
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<LdapAuthenticationProvider>
com.flowable.core.spring.security.ldap.FlowableLdapAuthenticationProviderFactory
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<LdapAuthenticationProvider>
,InitializingBean
,ApplicationContextAware
public class FlowableLdapAuthenticationProviderFactory
extends AbstractFactoryBean<LdapAuthenticationProvider>
implements ApplicationContextAware
Exposes an LDAP
AuthenticationProvider
bean
using the Flowable LdapConfigurationApi
.- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.flowable.core.spring.security.ldap.FlowableLdapAuthenticationProviderBuilder
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthoritiesPopulator
(LdapAuthoritiesPopulator ldapAuthoritiesPopulator) Specifies theLdapAuthoritiesPopulator
.contextSource
(BaseLdapPathContextSource contextSource) Specifies theBaseLdapPathContextSource
protected LdapAuthenticationProvider
defaultRole
(String defaultRole) The default role that should be added to every user.Class<?>
ldapConfiguration
(LdapConfigurationApi ldapConfiguration) Specifies theLdapConfigurationApi
void
setApplicationContext
(ApplicationContext applicationContext) userDefinitionAuthoritiesProvider
(UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider) Specifies theUserDefinitionAuthoritiesProvider
userSearch
(LdapUserSearch ldapUserSearch) Specifies theLdapUserSearch
.Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
builder
protected final com.flowable.core.spring.security.ldap.FlowableLdapAuthenticationProviderBuilder builder
-
-
Constructor Details
-
FlowableLdapAuthenticationProviderFactory
public FlowableLdapAuthenticationProviderFactory()
-
-
Method Details
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<LdapAuthenticationProvider>
- Specified by:
getObjectType
in classAbstractFactoryBean<LdapAuthenticationProvider>
-
createInstance
- Specified by:
createInstance
in classAbstractFactoryBean<LdapAuthenticationProvider>
-
setApplicationContext
- Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-
ldapConfiguration
public FlowableLdapAuthenticationProviderFactory ldapConfiguration(LdapConfigurationApi ldapConfiguration) Specifies theLdapConfigurationApi
- Parameters:
ldapConfiguration
- theLdapConfigurationApi
- Returns:
- the
FlowableLdapAuthenticationProviderFactory
for further customization
-
contextSource
public FlowableLdapAuthenticationProviderFactory contextSource(BaseLdapPathContextSource contextSource) Specifies theBaseLdapPathContextSource
- Parameters:
contextSource
- theBaseLdapPathContextSource
- Returns:
- the
FlowableLdapAuthenticationProviderFactory
for further customization
-
userDefinitionAuthoritiesProvider
public FlowableLdapAuthenticationProviderFactory userDefinitionAuthoritiesProvider(UserDefinitionAuthoritiesProvider userDefinitionAuthoritiesProvider) Specifies theUserDefinitionAuthoritiesProvider
- Parameters:
userDefinitionAuthoritiesProvider
- theUserDefinitionAuthoritiesProvider
- Returns:
- the
FlowableLdapAuthenticationProviderFactory
for further customization
-
userSearch
Specifies theLdapUserSearch
.- Parameters:
ldapUserSearch
- theLdapUserSearch
the default isFlowableLdapUserSearch
- Returns:
- the
FlowableLdapAuthenticationProviderFactory
for further customization
-
authoritiesPopulator
public FlowableLdapAuthenticationProviderFactory authoritiesPopulator(LdapAuthoritiesPopulator ldapAuthoritiesPopulator) Specifies theLdapAuthoritiesPopulator
.- Parameters:
ldapAuthoritiesPopulator
- theLdapAuthoritiesPopulator
the default isFlowableLdapAuthoritiesPopulator
- Returns:
- the
FlowableLdapAuthenticationProviderFactory
for further customization
-
defaultRole
The default role that should be added to every user.- Parameters:
defaultRole
- the default role- Returns:
- the
FlowableLdapAuthenticationProviderFactory
for further customization
-