B
- the type of the ProviderManagerBuilder
that is being configuredpublic class InMemoryUserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B>> extends UserDetailsManagerConfigurer<B,InMemoryUserDetailsManagerConfigurer<B>>
AuthenticationManagerBuilder
to have in memory authentication. It also allows easily adding users to the in memory
authentication.UserDetailsManagerConfigurer.UserDetailsBuilder
Constructor and Description |
---|
InMemoryUserDetailsManagerConfigurer()
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
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. |
initUserDetailsService, withUser, withUser, withUser
configure
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder
public InMemoryUserDetailsManagerConfigurer()
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 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