Class MatcherSecurityWebFilterChain
- java.lang.Object
-
- org.springframework.security.web.server.MatcherSecurityWebFilterChain
-
- All Implemented Interfaces:
SecurityWebFilterChain
public class MatcherSecurityWebFilterChain extends java.lang.Object implements SecurityWebFilterChain
ASecurityWebFilterChainthat leverages aServerWebExchangeMatcherto determine whichWebFilterto execute.- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description MatcherSecurityWebFilterChain(ServerWebExchangeMatcher matcher, java.util.List<org.springframework.web.server.WebFilter> filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Flux<org.springframework.web.server.WebFilter>getWebFilters()TheWebFilterto usereactor.core.publisher.Mono<java.lang.Boolean>matches(org.springframework.web.server.ServerWebExchange exchange)Determines if thisSecurityWebFilterChainmatches the providedServerWebExchange
-
-
-
Constructor Detail
-
MatcherSecurityWebFilterChain
public MatcherSecurityWebFilterChain(ServerWebExchangeMatcher matcher, java.util.List<org.springframework.web.server.WebFilter> filters)
-
-
Method Detail
-
matches
public reactor.core.publisher.Mono<java.lang.Boolean> matches(org.springframework.web.server.ServerWebExchange exchange)
Description copied from interface:SecurityWebFilterChainDetermines if thisSecurityWebFilterChainmatches the providedServerWebExchange- Specified by:
matchesin interfaceSecurityWebFilterChain- Parameters:
exchange- theServerWebExchange- Returns:
- true if it matches, else false
-
getWebFilters
public reactor.core.publisher.Flux<org.springframework.web.server.WebFilter> getWebFilters()
Description copied from interface:SecurityWebFilterChainTheWebFilterto use- Specified by:
getWebFiltersin interfaceSecurityWebFilterChain- Returns:
-
-