public abstract class GlobalAuthenticationConfigurerAdapter extends Object implements SecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,AuthenticationManagerBuilder>
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.| Constructor and Description |
|---|
GlobalAuthenticationConfigurerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(AuthenticationManagerBuilder auth)
Configure the
SecurityBuilder by setting the necessary properties
on the SecurityBuilder. |
void |
init(AuthenticationManagerBuilder auth)
Initialize the
SecurityBuilder. |
public GlobalAuthenticationConfigurerAdapter()
public void init(AuthenticationManagerBuilder auth) throws Exception
SecurityConfigurerSecurityBuilder. Here only shared state should be
created and modified, but not properties on the SecurityBuilder
used for building the object. This ensures that the
SecurityConfigurer.configure(SecurityBuilder) method uses the correct shared
objects when building.init in interface SecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,AuthenticationManagerBuilder>Exceptionpublic void configure(AuthenticationManagerBuilder auth) throws Exception
SecurityConfigurerSecurityBuilder by setting the necessary properties
on the SecurityBuilder.configure in interface SecurityConfigurer<org.springframework.security.authentication.AuthenticationManager,AuthenticationManagerBuilder>Exception