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 |
passwordEncoder(PasswordEncoder passwordEncoder)
Allows specifying the
PasswordEncoder
to use with the DaoAuthenticationProvider. |
C |
withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds an
ObjectPostProcessor for this class. |
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilderpublic 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
is to use plain text.passwordEncoder - The PasswordEncoder to use.public C passwordEncoder(PasswordEncoder passwordEncoder)
PasswordEncoder
to use with the DaoAuthenticationProvider. The default is is to
use plain text.passwordEncoder - The
PasswordEncoder
to use.SecurityConfigurer for further customizationspublic void configure(B builder)
throws Exception
SecurityConfigurerSecurityBuilder 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>>Exceptionpublic U getUserDetailsService()
UserDetailsService that is used with the DaoAuthenticationProvidergetUserDetailsService in class UserDetailsAwareConfigurer<B extends ProviderManagerBuilder<B>,U extends UserDetailsService>UserDetailsService that is used with the DaoAuthenticationProvider