Class ServerHttpSecurity.RequestCacheSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.RequestCacheSpec
-
- Enclosing class:
- ServerHttpSecurity
public final class ServerHttpSecurity.RequestCacheSpec extends java.lang.ObjectConfigures the request cache which is used when a flow is interrupted (i.e. due to requesting credentials) so that the request can be replayed after authentication.- Since:
- 5.0
- See Also:
ServerHttpSecurity.requestCache()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHttpSecurityand()Allows method chaining to continue configuring theServerHttpSecurityprotected voidconfigure(ServerHttpSecurity http)ServerHttpSecuritydisable()Disables theServerHttpSecurity.RequestCacheSpecServerHttpSecurity.RequestCacheSpecrequestCache(ServerRequestCache requestCache)Configures the cache used
-
-
-
Method Detail
-
requestCache
public ServerHttpSecurity.RequestCacheSpec requestCache(ServerRequestCache requestCache)
Configures the cache used- Parameters:
requestCache- the request cache- Returns:
- the
ServerHttpSecurity.RequestCacheSpecto configure
-
configure
protected void configure(ServerHttpSecurity http)
-
and
public ServerHttpSecurity and()
Allows method chaining to continue configuring theServerHttpSecurity- Returns:
- the
ServerHttpSecurityto continue configuring
-
disable
public ServerHttpSecurity disable()
Disables theServerHttpSecurity.RequestCacheSpec- Returns:
- the
ServerHttpSecurityto continue configuring
-
-