Class LdaptiveUserDetailsAutoConfiguration
- java.lang.Object
-
- org.bremersee.security.authentication.LdaptiveUserDetailsAutoConfiguration
-
@Configuration @ConditionalOnWebApplication(type=ANY) @AutoConfigureBefore(InMemoryUserDetailsAutoConfiguration.class) @AutoConfigureAfter(LdaptiveAutoConfiguration.class) @ConditionalOnClass({org.ldaptive.ConnectionFactory.class,LdaptiveOperations.class}) @ConditionalOnProperty(prefix="bremersee.ldaptive", name={"enabled","authentication-enabled"}, havingValue="true") @EnableConfigurationProperties(LdaptiveProperties.class) public class LdaptiveUserDetailsAutoConfiguration extends Object
The ldaptive user details auto configuration.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description LdaptiveUserDetailsAutoConfiguration(LdaptiveProperties properties, org.springframework.beans.factory.ObjectProvider<LdaptiveOperations> ldaptiveOperationsProvider)
Instantiates a new ldaptive user details auto configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Init.LdaptiveUserDetailsService
ldaptiveUserDetailsService()
Ldaptive user details service.LdaptivePasswordMatcher
passwordEncoder()
Ldaptive password matcher.ReactiveLdaptiveUserDetailsService
reactiveLdaptiveUserDetailsService(org.springframework.beans.factory.ObjectProvider<ReactiveLdaptiveOperations> reactiveLdaptiveOperationsProvider)
Reactive ldaptive user details service.
-
-
-
Constructor Detail
-
LdaptiveUserDetailsAutoConfiguration
public LdaptiveUserDetailsAutoConfiguration(LdaptiveProperties properties, org.springframework.beans.factory.ObjectProvider<LdaptiveOperations> ldaptiveOperationsProvider)
Instantiates a new ldaptive user details auto configuration.- Parameters:
properties
- the propertiesldaptiveOperationsProvider
- the ldaptive operations provider
-
-
Method Detail
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
Init.
-
ldaptiveUserDetailsService
@ConditionalOnWebApplication(type=SERVLET) @ConditionalOnMissingBean(org.springframework.security.core.userdetails.UserDetailsService.class) @Bean public LdaptiveUserDetailsService ldaptiveUserDetailsService()
Ldaptive user details service.- Returns:
- the ldaptive user details service
-
reactiveLdaptiveUserDetailsService
@ConditionalOnWebApplication(type=REACTIVE) @ConditionalOnMissingBean(org.springframework.security.core.userdetails.ReactiveUserDetailsService.class) @Bean public ReactiveLdaptiveUserDetailsService reactiveLdaptiveUserDetailsService(org.springframework.beans.factory.ObjectProvider<ReactiveLdaptiveOperations> reactiveLdaptiveOperationsProvider)
Reactive ldaptive user details service.- Parameters:
reactiveLdaptiveOperationsProvider
- the reactive ldaptive operations provider- Returns:
- the reactive ldaptive user details service
-
passwordEncoder
@ConditionalOnMissingBean(org.springframework.security.crypto.password.PasswordEncoder.class) @Bean public LdaptivePasswordMatcher passwordEncoder()
Ldaptive password matcher.- Returns:
- the ldaptive password matcher
-
-