public abstract class GlobalAuthenticationConfigurerAdapter extends Object implements SecurityConfigurer<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
SecurityConfigurer
SecurityBuilder
. 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<AuthenticationManager,AuthenticationManagerBuilder>
Exception
public void configure(AuthenticationManagerBuilder auth) throws Exception
SecurityConfigurer
SecurityBuilder
by setting the necessary properties
on the SecurityBuilder
.configure
in interface SecurityConfigurer<AuthenticationManager,AuthenticationManagerBuilder>
Exception