Class AbstractDaoAuthenticationConfigurer<B extends ProviderManagerBuilder<B>,C extends AbstractDaoAuthenticationConfigurer<B,C,U>,U extends org.springframework.security.core.userdetails.UserDetailsService>
java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<org.springframework.security.authentication.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 theSecurityBuilder
C
- the type ofAbstractDaoAuthenticationConfigurer
this isU
- The type ofUserDetailsService
that is being used
- All Implemented Interfaces:
SecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,
B>
- Direct Known Subclasses:
DaoAuthenticationConfigurer
,UserDetailsServiceConfigurer
public abstract class AbstractDaoAuthenticationConfigurer<B extends ProviderManagerBuilder<B>,C extends AbstractDaoAuthenticationConfigurer<B,C,U>,U extends org.springframework.security.core.userdetails.UserDetailsService>
extends UserDetailsAwareConfigurer<B,U>
Allows configuring a
DaoAuthenticationProvider
- Since:
- 3.2
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.Gets theUserDetailsService
that is used with theDaoAuthenticationProvider
passwordEncoder
(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) Allows specifying thePasswordEncoder
to use with theDaoAuthenticationProvider
.userDetailsPasswordManager
(org.springframework.security.core.userdetails.UserDetailsPasswordService passwordManager) withObjectPostProcessor
(ObjectPostProcessor<?> objectPostProcessor) Adds anObjectPostProcessor
for this class.Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder
-
Method Details
-
withObjectPostProcessor
Adds anObjectPostProcessor
for this class.- Parameters:
objectPostProcessor
-- Returns:
- the
AbstractDaoAuthenticationConfigurer
for further customizations
-
passwordEncoder
public C passwordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder) Allows specifying thePasswordEncoder
to use with theDaoAuthenticationProvider
. The default is to use plain text.- Parameters:
passwordEncoder
- ThePasswordEncoder
to use.- Returns:
- the
AbstractDaoAuthenticationConfigurer
for further customizations
-
userDetailsPasswordManager
public C userDetailsPasswordManager(org.springframework.security.core.userdetails.UserDetailsPasswordService passwordManager) -
configure
Description copied from interface:SecurityConfigurer
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.- Specified by:
configure
in interfaceSecurityConfigurer<B extends ProviderManagerBuilder<B>,
C extends AbstractDaoAuthenticationConfigurer<B, C, U>> - Overrides:
configure
in classSecurityConfigurerAdapter<org.springframework.security.authentication.AuthenticationManager,
B extends ProviderManagerBuilder<B>> - Throws:
Exception
-
getUserDetailsService
Gets theUserDetailsService
that is used with theDaoAuthenticationProvider
- Specified by:
getUserDetailsService
in classUserDetailsAwareConfigurer<B extends ProviderManagerBuilder<B>,
U extends org.springframework.security.core.userdetails.UserDetailsService> - Returns:
- the
UserDetailsService
that is used with theDaoAuthenticationProvider
-