B - the type of the ProviderManagerBuilderC - the UserDetailsServiceConfigurer (or this)U - the type of UserDetailsService being used to allow for returning the
concrete UserDetailsService.public class UserDetailsServiceConfigurer<B extends ProviderManagerBuilder<B>,C extends UserDetailsServiceConfigurer<B,C,U>,U extends org.springframework.security.core.userdetails.UserDetailsService> extends AbstractDaoAuthenticationConfigurer<B,C,U>
UserDetailsService within a
AuthenticationManagerBuilder.| Constructor and Description |
|---|
UserDetailsServiceConfigurer(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. |
protected void |
initUserDetailsService()
Allows subclasses to initialize the
UserDetailsService. |
getUserDetailsService, passwordEncoder, userDetailsPasswordManager, withObjectPostProcessoraddObjectPostProcessor, and, getBuilder, init, postProcess, setBuilderpublic UserDetailsServiceConfigurer(U userDetailsService)
userDetailsService - the UserDetailsService that should be usedpublic 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 AbstractDaoAuthenticationConfigurer<B extends ProviderManagerBuilder<B>,C extends UserDetailsServiceConfigurer<B,C,U>,U extends org.springframework.security.core.userdetails.UserDetailsService>java.lang.Exceptionprotected void initUserDetailsService()
throws java.lang.Exception
UserDetailsService. For example, it
might add users, initialize schema, etc.java.lang.Exception