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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.void
Initialize theSecurityBuilder
.
-
Constructor Details
-
GlobalAuthenticationConfigurerAdapter
public GlobalAuthenticationConfigurerAdapter()
-
-
Method Details
-
init
Description copied from interface:SecurityConfigurer
Initialize theSecurityBuilder
. Here only shared state should be created and modified, but not properties on theSecurityBuilder
used 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:
init
in interfaceSecurityConfigurer<AuthenticationManager,
AuthenticationManagerBuilder> - Throws:
Exception
-
configure
Description copied from interface:SecurityConfigurer
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.- Specified by:
configure
in interfaceSecurityConfigurer<AuthenticationManager,
AuthenticationManagerBuilder> - Throws:
Exception
-