@Configuration @ConditionalOnBean(value=org.springframework.security.config.annotation.ObjectPostProcessor.class) @ConditionalOnMissingBean(value=org.springframework.security.authentication.AuthenticationManager.class) @Order(value=0) public class AuthenticationManagerConfiguration extends Object
AuthenticationManager
. Can be
disabled by providing a bean of type AuthenticationManager, or by autowiring an
AuthenticationManagerBuilder
into a method in one of your configuration
classes. The value provided by this configuration will become the "global"
authentication manager (from Spring Security), or the parent of the global instance.
Thus it acts as a fallback when no others are provided, is used by method security if
enabled, and as a parent authentication manager for "local" authentication managers in
individual filter chains.Modifier and Type | Class and Description |
---|---|
protected static class |
AuthenticationManagerConfiguration.AuthenticationManagerConfigurationListener
|
Constructor and Description |
---|
AuthenticationManagerConfiguration() |
Modifier and Type | Method and Description |
---|---|
AuthenticationManager |
authenticationManager(AuthenticationConfiguration configuration) |
AuthenticationManagerConfiguration.AuthenticationManagerConfigurationListener |
authenticationManagerConfigurationListener() |
static org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration.SpringBootAuthenticationConfigurerAdapter |
springBootAuthenticationConfigurerAdapter(SecurityProperties securityProperties,
List<SecurityPrerequisite> dependencies) |
@Bean @Primary public AuthenticationManager authenticationManager(AuthenticationConfiguration configuration) throws Exception
Exception
@Bean public static org.springframework.boot.autoconfigure.security.AuthenticationManagerConfiguration.SpringBootAuthenticationConfigurerAdapter springBootAuthenticationConfigurerAdapter(SecurityProperties securityProperties, List<SecurityPrerequisite> dependencies)
@Bean public AuthenticationManagerConfiguration.AuthenticationManagerConfigurationListener authenticationManagerConfigurationListener()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.