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
Nested ClassesModifier and TypeClassDescriptionstatic classAWebFilterChainProxy.WebFilterChainDecoratorthat uses theDefaultWebFilterChainstatic interfaceA strategy for decorating the provided filter chain with one that accounts for theSecurityFilterChainfor a given request. -
Constructor Summary
ConstructorsConstructorDescriptionWebFilterChainProxy(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) voidsetFilterChainDecorator(WebFilterChainProxy.WebFilterChainDecorator filterChainDecorator) Used to decorate the originalFilterChainfor 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:
filterin interfaceorg.springframework.web.server.WebFilter
-
setFilterChainDecorator
public void setFilterChainDecorator(WebFilterChainProxy.WebFilterChainDecorator filterChainDecorator) Used to decorate the originalFilterChainfor each requestBy default, this decorates the filter chain with a
DefaultWebFilterChainthat iterates through security filters and then delegates to the original chain- Parameters:
filterChainDecorator- the strategy for constructing the filter chain- Since:
- 6.0
-