Class GlobalAuthenticationConfigurerAdapter
- java.lang.Object
-
- org.springframework.security.config.annotation.authentication.configuration.GlobalAuthenticationConfigurerAdapter
-
- All Implemented Interfaces:
SecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,AuthenticationManagerBuilder>
@Order(100) public abstract class GlobalAuthenticationConfigurerAdapter extends java.lang.Object implements SecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,AuthenticationManagerBuilder>
ASecurityConfigurerthat can be exposed as a bean to configure the globalAuthenticationManagerBuilder. Beans of this type are automatically used byAuthenticationConfigurationto 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 voidconfigure(AuthenticationManagerBuilder auth)Configure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.voidinit(AuthenticationManagerBuilder auth)Initialize theSecurityBuilder.
-
-
-
Method Detail
-
init
public void init(AuthenticationManagerBuilder auth) throws java.lang.Exception
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<org.springframework.security.authentication.AuthenticationManager,AuthenticationManagerBuilder>- Throws:
java.lang.Exception
-
configure
public void configure(AuthenticationManagerBuilder auth) throws java.lang.Exception
Description copied from interface:SecurityConfigurerConfigure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.- Specified by:
configurein interfaceSecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,AuthenticationManagerBuilder>- Throws:
java.lang.Exception
-
-