B
- The type of ProviderManagerBuilder
this isU
- The type of UserDetailsService
that is being usedpublic class DaoAuthenticationConfigurer<B extends ProviderManagerBuilder<B>,U extends UserDetailsService> extends UserDetailsAwareConfigurer<B,U>
DaoAuthenticationProvider
Constructor and Description |
---|
DaoAuthenticationConfigurer(U userDetailsService)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
void |
configure(B builder)
Configure the
SecurityBuilder by setting the necessary properties on the
SecurityBuilder . |
U |
getUserDetailsService()
Gets the
UserDetailsService that is used with the
DaoAuthenticationProvider |
C |
passwordEncoder(PasswordEncoder passwordEncoder)
Allows specifying the
PasswordEncoder to use with the
DaoAuthenticationProvider . |
C |
userDetailsPasswordManager(UserDetailsPasswordService passwordManager) |
C |
withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds an
ObjectPostProcessor for this class. |
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder
public DaoAuthenticationConfigurer(U userDetailsService)
userDetailsService
- public C withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
ObjectPostProcessor
for this class.objectPostProcessor
- AbstractDaoAuthenticationConfigurer
for further customizationspublic C passwordEncoder(PasswordEncoder passwordEncoder)
PasswordEncoder
to use with the
DaoAuthenticationProvider
. The default is to use plain text.passwordEncoder
- The PasswordEncoder
to use.AbstractDaoAuthenticationConfigurer
for further customizationspublic C userDetailsPasswordManager(UserDetailsPasswordService passwordManager)
public void configure(B builder) throws java.lang.Exception
SecurityConfigurer
SecurityBuilder
by setting the necessary properties on the
SecurityBuilder
.configure
in interface SecurityConfigurer<AuthenticationManager,B extends ProviderManagerBuilder<B>>
configure
in class SecurityConfigurerAdapter<AuthenticationManager,B extends ProviderManagerBuilder<B>>
java.lang.Exception
public U getUserDetailsService()
UserDetailsService
that is used with the
DaoAuthenticationProvider
getUserDetailsService
in class UserDetailsAwareConfigurer<B extends ProviderManagerBuilder<B>,U extends UserDetailsService>
UserDetailsService
that is used with the
DaoAuthenticationProvider