@EachBean(value=LdapConfiguration.class) public class LdapAuthenticationProvider extends Object implements AuthenticationProvider, 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 |
---|---|
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 Publisher<AuthenticationResponse> authenticate(AuthenticationRequest authenticationRequest)
AuthenticationProvider
UserDetails
.authenticate
in interface AuthenticationProvider
authenticationRequest
- The request to authenticatepublic void close()
close
in interface Closeable
close
in interface AutoCloseable