B - the type of the SecurityBuilder that is being configuredC - the type of UserDetailsManagerConfigurerpublic class UserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B>,C extends UserDetailsManagerConfigurer<B,C>> extends UserDetailsServiceConfigurer<B,C,org.springframework.security.provisioning.UserDetailsManager>
AuthenticationManagerBuilder
with a UserDetailsManager.| Modifier and Type | Class and Description |
|---|---|
class |
UserDetailsManagerConfigurer.UserDetailsBuilder
Builds the user to be added.
|
| Modifier | Constructor and Description |
|---|---|
protected |
UserDetailsManagerConfigurer(org.springframework.security.provisioning.UserDetailsManager userDetailsManager) |
| Modifier and Type | Method and Description |
|---|---|
U |
getUserDetailsService()
Gets the
UserDetailsService that is used with the
DaoAuthenticationProvider |
protected void |
initUserDetailsService()
Populates the users that have been added.
|
C |
passwordEncoder(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
Allows specifying the
PasswordEncoder to use with the
DaoAuthenticationProvider. |
C |
passwordEncoder(org.springframework.security.authentication.encoding.PasswordEncoder passwordEncoder)
Allows specifying the
PasswordEncoder to use
with the DaoAuthenticationProvider. |
C |
withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds an
ObjectPostProcessor for this class. |
UserDetailsManagerConfigurer.UserDetailsBuilder |
withUser(String username)
Allows adding a user to the
UserDetailsManager that is being created. |
configureaddObjectPostProcessor, and, getBuilder, init, postProcess, setBuilderprotected UserDetailsManagerConfigurer(org.springframework.security.provisioning.UserDetailsManager userDetailsManager)
protected void initUserDetailsService()
throws Exception
initUserDetailsService in class UserDetailsServiceConfigurer<B extends ProviderManagerBuilder<B>,C extends UserDetailsManagerConfigurer<B,C>,org.springframework.security.provisioning.UserDetailsManager>Exceptionpublic final UserDetailsManagerConfigurer.UserDetailsBuilder withUser(String username)
UserDetailsManager that is being created. This
method can be invoked multiple times to add multiple users.username - the username for the user being added. Cannot be null.public 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 is to use plain text.passwordEncoder - The PasswordEncoder to use.public C passwordEncoder(org.springframework.security.authentication.encoding.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 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