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 java.lang.Object implements SecurityConfigurer<AuthenticationManager,AuthenticationManagerBuilder>
ASecurityConfigurer
that can be exposed as a bean to configure the globalAuthenticationManagerBuilder
. Beans of this type are automatically used byAuthenticationConfiguration
to configure the globalAuthenticationManagerBuilder
.- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description GlobalAuthenticationConfigurerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(AuthenticationManagerBuilder auth)
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.void
init(AuthenticationManagerBuilder auth)
Initialize theSecurityBuilder
.
-
-
-
Method Detail
-
init
public void init(AuthenticationManagerBuilder auth) throws java.lang.Exception
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:
java.lang.Exception
-
configure
public void configure(AuthenticationManagerBuilder auth) throws java.lang.Exception
Description copied from interface:SecurityConfigurer
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.- Specified by:
configure
in interfaceSecurityConfigurer<AuthenticationManager,AuthenticationManagerBuilder>
- Throws:
java.lang.Exception
-
-