Package io.micronaut.security.ldap
Class LdapAuthenticationProviderFactory
java.lang.Object
io.micronaut.security.ldap.LdapAuthenticationProviderFactory
Factory to create an LDAP authentication provider if the configuration is enabled.
- Since:
- 1.2.3
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionldapAuthenticationProvider
(LdapConfiguration configuration, LdapSearchService ldapSearchService, ContextBuilder contextBuilder, ContextAuthenticationMapper contextAuthenticationMapper, LdapGroupProcessor ldapGroupProcessor, ExecutorService executorService)
-
Constructor Details
-
LdapAuthenticationProviderFactory
public LdapAuthenticationProviderFactory()
-
-
Method Details
-
ldapAuthenticationProvider
@EachBean(LdapConfiguration.class) @Requires(condition=LdapEnabledCondition.class) public LdapAuthenticationProvider ldapAuthenticationProvider(@Parameter LdapConfiguration configuration, LdapSearchService ldapSearchService, ContextBuilder contextBuilder, ContextAuthenticationMapper contextAuthenticationMapper, LdapGroupProcessor ldapGroupProcessor, @Named("io") ExecutorService executorService) - Parameters:
configuration
- The configuration to use to authenticateldapSearchService
- The search servicecontextBuilder
- The context buildercontextAuthenticationMapper
- The authentication mapperldapGroupProcessor
- The group processorexecutorService
- Executor Service- Returns:
- an
LdapAuthenticationProvider
if the correspondingLdapConfiguration
is enabled
-