org.springframework.security.config.annotation.authentication.configurers.provisioning
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 the SecurityBuilder
that is being configured
- All Implemented Interfaces:
- SecurityConfigurer<AuthenticationManager,B>
public class InMemoryUserDetailsManagerConfigurer<B extends ProviderManagerBuilder<B>>
- extends UserDetailsManagerConfigurer<B,InMemoryUserDetailsManagerConfigurer<B>>
Configures an AuthenticationManagerBuilder
to
have in memory authentication. It also allows easily adding users to the in memory authentication.
- Since:
- 3.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryUserDetailsManagerConfigurer
public InMemoryUserDetailsManagerConfigurer()
- Creates a new instance
withObjectPostProcessor
public C withObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor)
- Adds an
ObjectPostProcessor
for this class.
- Parameters:
objectPostProcessor
-
- Returns:
- the
AbstractDaoAuthenticationConfigurer
for further customizations
passwordEncoder
public C passwordEncoder(PasswordEncoder passwordEncoder)
- Allows specifying the
PasswordEncoder
to use with the DaoAuthenticationProvider
. The default is
is to use plain text.
- Parameters:
passwordEncoder
- The PasswordEncoder
to use.
- Returns:
passwordEncoder
public C passwordEncoder(PasswordEncoder passwordEncoder)
- Allows specifying the
PasswordEncoder
to use with the DaoAuthenticationProvider
. The default is is to
use plain text.
- Parameters:
passwordEncoder
- The
PasswordEncoder
to use.
- Returns:
- the
SecurityConfigurer
for further customizations
getUserDetailsService
public U getUserDetailsService()
- Gets the
UserDetailsService
that is used with the DaoAuthenticationProvider
- Specified by:
getUserDetailsService
in class UserDetailsAwareConfigurer<B extends ProviderManagerBuilder<B>,U extends UserDetailsService>
- Returns:
- the
UserDetailsService
that is used with the DaoAuthenticationProvider