Class GlobalAuthenticationConfigurerAdapter
java.lang.Object
org.springframework.security.config.annotation.authentication.configuration.GlobalAuthenticationConfigurerAdapter
- All Implemented Interfaces:
SecurityConfigurer<AuthenticationManager,AuthenticationManagerBuilder>
@Order(100)
public abstract class GlobalAuthenticationConfigurerAdapter
extends Object
implements SecurityConfigurer<AuthenticationManager,AuthenticationManagerBuilder>
A
SecurityConfigurer that can be exposed as a bean to configure the global
AuthenticationManagerBuilder. Beans of this type are automatically used by
AuthenticationConfiguration to configure the global
AuthenticationManagerBuilder.- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.voidInitialize theSecurityBuilder.
-
Constructor Details
-
GlobalAuthenticationConfigurerAdapter
public GlobalAuthenticationConfigurerAdapter()
-
-
Method Details
-
init
Description copied from interface:SecurityConfigurerInitialize theSecurityBuilder. Here only shared state should be created and modified, but not properties on theSecurityBuilderused for building the object. This ensures that theSecurityConfigurer.configure(SecurityBuilder)method uses the correct shared objects when building. Configurers should be applied here.- Specified by:
initin interfaceSecurityConfigurer<AuthenticationManager,AuthenticationManagerBuilder> - Throws:
Exception
-
configure
Description copied from interface:SecurityConfigurerConfigure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.- Specified by:
configurein interfaceSecurityConfigurer<AuthenticationManager,AuthenticationManagerBuilder> - Throws:
Exception
-