@EachBean(value=LdapConfiguration.class) public class LdapAuthenticationProvider extends java.lang.Object implements AuthenticationProvider, java.io.Closeable
LdapConfiguration
. One provider will be created for each configuration.Constructor and Description |
---|
LdapAuthenticationProvider(LdapConfiguration configuration,
LdapSearchService ldapSearchService,
ContextBuilder contextBuilder,
ContextAuthenticationMapper contextAuthenticationMapper,
LdapGroupProcessor ldapGroupProcessor) |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<AuthenticationResponse> |
authenticate(AuthenticationRequest authenticationRequest)
Authenticates a user with the given request.
|
void |
close() |
public LdapAuthenticationProvider(LdapConfiguration configuration, LdapSearchService ldapSearchService, ContextBuilder contextBuilder, ContextAuthenticationMapper contextAuthenticationMapper, LdapGroupProcessor ldapGroupProcessor)
configuration
- The configuration to use to authenticateldapSearchService
- The search servicecontextBuilder
- The context buildercontextAuthenticationMapper
- The authentication mapperldapGroupProcessor
- The group processorpublic org.reactivestreams.Publisher<AuthenticationResponse> authenticate(AuthenticationRequest authenticationRequest)
AuthenticationProvider
UserDetails
.authenticate
in interface AuthenticationProvider
authenticationRequest
- The request to authenticatepublic void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable