Class WebFilterChainProxy
java.lang.Object
org.springframework.security.web.server.WebFilterChainProxy
- All Implemented Interfaces:
org.springframework.web.server.WebFilter
Used to delegate to a List of
SecurityWebFilterChain
instances.- Since:
- 5.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AWebFilterChainProxy.WebFilterChainDecorator
that uses theDefaultWebFilterChain
static interface
A strategy for decorating the provided filter chain with one that accounts for theSecurityFilterChain
for a given request. -
Constructor Summary
ConstructorDescriptionWebFilterChainProxy
(List<SecurityWebFilterChain> filters) WebFilterChainProxy
(SecurityWebFilterChain... filters) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
filter
(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain) void
setFilterChainDecorator
(WebFilterChainProxy.WebFilterChainDecorator filterChainDecorator) Used to decorate the originalFilterChain
for each request
-
Constructor Details
-
WebFilterChainProxy
-
WebFilterChainProxy
-
-
Method Details
-
filter
public reactor.core.publisher.Mono<Void> filter(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.server.WebFilterChain chain) - Specified by:
filter
in interfaceorg.springframework.web.server.WebFilter
-
setFilterChainDecorator
public void setFilterChainDecorator(WebFilterChainProxy.WebFilterChainDecorator filterChainDecorator) Used to decorate the originalFilterChain
for each requestBy default, this decorates the filter chain with a
DefaultWebFilterChain
that iterates through security filters and then delegates to the original chain- Parameters:
filterChainDecorator
- the strategy for constructing the filter chain- Since:
- 6.0
-