B - the type of the SecurityBuilderC - the type of AbstractDaoAuthenticationConfigurer this isU - The type of UserDetailsService that is being usedpublic 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>
DaoAuthenticationProvider| 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(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
Allows specifying the
PasswordEncoder to use with the
DaoAuthenticationProvider. |
C |
userDetailsPasswordManager(org.springframework.security.core.userdetails.UserDetailsPasswordService passwordManager) |
C |
withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds an
ObjectPostProcessor for this class. |
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilderpublic C withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
ObjectPostProcessor for this class.objectPostProcessor - AbstractDaoAuthenticationConfigurer for further customizationspublic C passwordEncoder(org.springframework.security.crypto.password.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(org.springframework.security.core.userdetails.UserDetailsPasswordService passwordManager)
public void configure(B builder) throws java.lang.Exception
SecurityConfigurerSecurityBuilder by setting the necessary properties on the
SecurityBuilder.configure in interface SecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,B extends ProviderManagerBuilder<B>>configure in class SecurityConfigurerAdapter<org.springframework.security.authentication.AuthenticationManager,B extends ProviderManagerBuilder<B>>java.lang.Exceptionpublic U getUserDetailsService()
UserDetailsService that is used with the
DaoAuthenticationProvidergetUserDetailsService in class UserDetailsAwareConfigurer<B extends ProviderManagerBuilder<B>,U extends org.springframework.security.core.userdetails.UserDetailsService>UserDetailsService that is used with the
DaoAuthenticationProvider