public final class DefaultLoginPageConfigurer<H extends HttpSecurityBuilder<H>> extends AbstractHttpConfigurer<DefaultLoginPageConfigurer<H>,H>
WebSecurityConfigurerAdapter
.
By default an
InsecureChannelProcessor
and a
SecureChannelProcessor
will be
registered.
DefaultLoginPageGeneratingFilter
if the FormLoginConfigurer
did not
have a login page specifiedPortMapper
is used to create the default
ChannelProcessor
instancesFormLoginConfigurer
is used to determine if the
DefaultLoginPageConfigurer
should be added and how to configure it.WebSecurityConfigurerAdapter
Constructor and Description |
---|
DefaultLoginPageConfigurer() |
Modifier and Type | Method and Description |
---|---|
void |
configure(H http)
Configure the
SecurityBuilder by setting the necessary properties on the
SecurityBuilder . |
void |
init(H http)
Initialize the
SecurityBuilder . |
disable, withObjectPostProcessor
addObjectPostProcessor, and, getBuilder, postProcess, setBuilder
public void init(H http) 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<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
init
in class SecurityConfigurerAdapter<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
Exception
public void configure(H http) throws Exception
SecurityConfigurer
SecurityBuilder
by setting the necessary properties on the
SecurityBuilder
.configure
in interface SecurityConfigurer<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
configure
in class SecurityConfigurerAdapter<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
Exception