Class AbstractDaoAuthenticationConfigurer<B extends ProviderManagerBuilder<B>,C extends AbstractDaoAuthenticationConfigurer<B,C,U>,U extends UserDetailsService>
java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<AuthenticationManager,B>
org.springframework.security.config.annotation.authentication.configurers.userdetails.UserDetailsAwareConfigurer<B,U>
org.springframework.security.config.annotation.authentication.configurers.userdetails.AbstractDaoAuthenticationConfigurer<B,C,U>
- Type Parameters:
B- the type of theSecurityBuilderC- the type ofAbstractDaoAuthenticationConfigurerthis isU- The type ofUserDetailsServicethat is being used
- All Implemented Interfaces:
SecurityConfigurer<AuthenticationManager,B>
- Direct Known Subclasses:
DaoAuthenticationConfigurer,UserDetailsServiceConfigurer
public abstract class AbstractDaoAuthenticationConfigurer<B extends ProviderManagerBuilder<B>,C extends AbstractDaoAuthenticationConfigurer<B,C,U>,U extends UserDetailsService>
extends UserDetailsAwareConfigurer<B,U>
Allows configuring a
DaoAuthenticationProvider- Since:
- 3.2
-
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.Gets theUserDetailsServicethat is used with theDaoAuthenticationProviderpasswordEncoder(PasswordEncoder passwordEncoder) Allows specifying thePasswordEncoderto use with theDaoAuthenticationProvider.userDetailsPasswordManager(UserDetailsPasswordService passwordManager) withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor) Deprecated, for removal: This API element is subject to removal in a future version.withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor) Adds anObjectPostProcessorfor this class.Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter
addObjectPostProcessor, addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder
-
Method Details
-
withObjectPostProcessor
Adds anObjectPostProcessorfor this class.- Parameters:
objectPostProcessor-- Returns:
- the
AbstractDaoAuthenticationConfigurerfor further customizations
-
withObjectPostProcessor
@Deprecated(since="6.4", forRemoval=true) public C withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor) Deprecated, for removal: This API element is subject to removal in a future version. -
passwordEncoder
Allows specifying thePasswordEncoderto use with theDaoAuthenticationProvider. The default is to use plain text.- Parameters:
passwordEncoder- ThePasswordEncoderto use.- Returns:
- the
AbstractDaoAuthenticationConfigurerfor further customizations
-
userDetailsPasswordManager
-
configure
Description copied from interface:SecurityConfigurerConfigure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.- Specified by:
configurein interfaceSecurityConfigurer<B extends ProviderManagerBuilder<B>,C extends AbstractDaoAuthenticationConfigurer<B, C, U>> - Overrides:
configurein classSecurityConfigurerAdapter<AuthenticationManager,B extends ProviderManagerBuilder<B>> - Throws:
Exception
-
getUserDetailsService
Gets theUserDetailsServicethat is used with theDaoAuthenticationProvider- Specified by:
getUserDetailsServicein classUserDetailsAwareConfigurer<B extends ProviderManagerBuilder<B>,U extends UserDetailsService> - Returns:
- the
UserDetailsServicethat is used with theDaoAuthenticationProvider
-