Class InMemoryUserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B>>
- java.lang.Object
-
- org.springframework.security.config.annotation.SecurityConfigurerAdapter<AuthenticationManager,B>
-
- org.springframework.security.config.annotation.authentication.configurers.userdetails.UserDetailsAwareConfigurer<B,U>
-
- org.springframework.security.config.annotation.authentication.configurers.userdetails.UserDetailsServiceConfigurer<B,C,UserDetailsManager>
-
- org.springframework.security.config.annotation.authentication.configurers.provisioning.UserDetailsManagerConfigurer<B,InMemoryUserDetailsManagerConfigurer<B>>
-
- org.springframework.security.config.annotation.authentication.configurers.provisioning.InMemoryUserDetailsManagerConfigurer<B>
-
- Type Parameters:
B
- the type of theProviderManagerBuilder
that is being configured
- All Implemented Interfaces:
SecurityConfigurer<AuthenticationManager,B>
public class InMemoryUserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B>> extends UserDetailsManagerConfigurer<B,InMemoryUserDetailsManagerConfigurer<B>>
Configures anAuthenticationManagerBuilder
to have in memory authentication. It also allows easily adding users to the in memory authentication.- Since:
- 3.2
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.security.config.annotation.authentication.configurers.provisioning.UserDetailsManagerConfigurer
UserDetailsManagerConfigurer.UserDetailsBuilder
-
-
Constructor Summary
Constructors Constructor Description InMemoryUserDetailsManagerConfigurer()
Creates a new instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description U
getUserDetailsService()
Gets theUserDetailsService
that is used with theDaoAuthenticationProvider
C
passwordEncoder(PasswordEncoder passwordEncoder)
Allows specifying thePasswordEncoder
to use with theDaoAuthenticationProvider
.C
userDetailsPasswordManager(UserDetailsPasswordService passwordManager)
C
withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds anObjectPostProcessor
for this class.-
Methods inherited from class org.springframework.security.config.annotation.authentication.configurers.provisioning.UserDetailsManagerConfigurer
initUserDetailsService, withUser, withUser, withUser
-
Methods inherited from class org.springframework.security.config.annotation.authentication.configurers.userdetails.UserDetailsServiceConfigurer
configure
-
Methods inherited from class org.springframework.security.config.annotation.SecurityConfigurerAdapter
addObjectPostProcessor, and, getBuilder, init, postProcess, setBuilder
-
-
-
-
Method Detail
-
withObjectPostProcessor
public C withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
Adds anObjectPostProcessor
for this class.- Parameters:
objectPostProcessor
-- Returns:
- the
AbstractDaoAuthenticationConfigurer
for further customizations
-
passwordEncoder
public C passwordEncoder(PasswordEncoder passwordEncoder)
Allows specifying thePasswordEncoder
to use with theDaoAuthenticationProvider
. The default is to use plain text.- Parameters:
passwordEncoder
- ThePasswordEncoder
to use.- Returns:
- the
AbstractDaoAuthenticationConfigurer
for further customizations
-
userDetailsPasswordManager
public C userDetailsPasswordManager(UserDetailsPasswordService passwordManager)
-
getUserDetailsService
public U getUserDetailsService()
Gets theUserDetailsService
that is used with theDaoAuthenticationProvider
- Specified by:
getUserDetailsService
in classUserDetailsAwareConfigurer<B extends ProviderManagerBuilder<B>,U extends UserDetailsService>
- Returns:
- the
UserDetailsService
that is used with theDaoAuthenticationProvider
-
-