public final class RequestCacheConfigurer<H extends HttpSecurityBuilder<H>> extends AbstractHttpConfigurer<RequestCacheConfigurer<H>,H>
SecurityConfigurer
.
RequestCache
, is provided a RequestCache
shared
object is used to replay the request after authentication is successfulRequestCache
Constructor and Description |
---|
RequestCacheConfigurer() |
Modifier and Type | Method and Description |
---|---|
void |
configure(H http)
Configure the
SecurityBuilder by setting the necessary properties on the
SecurityBuilder . |
H |
disable()
Disables the
AbstractHttpConfigurer by removing it. |
void |
init(H http)
Initialize the
SecurityBuilder . |
RequestCacheConfigurer<H> |
requestCache(RequestCache requestCache)
Allows explicit configuration of the
RequestCache to be used. |
withObjectPostProcessor
addObjectPostProcessor, and, getBuilder, postProcess, setBuilder
public RequestCacheConfigurer<H> requestCache(RequestCache requestCache)
RequestCache
to be used. Defaults to
try finding a RequestCache
as a shared object. Then falls back to a
HttpSessionRequestCache
.requestCache
- the explicit RequestCache
to useRequestCacheConfigurer
for further customizationpublic H disable()
AbstractHttpConfigurer
AbstractHttpConfigurer
by removing it. After doing so a fresh
version of the configuration can be applied.disable
in class AbstractHttpConfigurer<RequestCacheConfigurer<H extends HttpSecurityBuilder<H>>,H extends HttpSecurityBuilder<H>>
HttpSecurityBuilder
for additional customizationspublic void init(H http)
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. Configurers should be applied here.init
in interface SecurityConfigurer<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
init
in class SecurityConfigurerAdapter<DefaultSecurityFilterChain,H extends HttpSecurityBuilder<H>>
public void configure(H http)
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>>