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) voidsetExchangeRejectedHandler(ServerExchangeRejectedHandler exchangeRejectedHandler) HandlesServerExchangeRejectedExceptionwhen theServerWebExchangeFirewallrejects the providedServerWebExchange.voidsetFilterChainDecorator(WebFilterChainProxy.WebFilterChainDecorator filterChainDecorator) Used to decorate the originalFilterChainfor each requestvoidsetFirewall(ServerWebExchangeFirewall firewall) Protects the application using the providedStrictServerWebExchangeFirewall.
-
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
-
setFirewall
Protects the application using the providedStrictServerWebExchangeFirewall.- Parameters:
firewall- theStrictServerWebExchangeFirewallto use. Cannot be null.- Since:
- 6.4
-
setExchangeRejectedHandler
HandlesServerExchangeRejectedExceptionwhen theServerWebExchangeFirewallrejects the providedServerWebExchange.- Parameters:
exchangeRejectedHandler- theServerExchangeRejectedHandlerto use.
-
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
-