Class MatcherSecurityWebFilterChain
- java.lang.Object
-
- org.springframework.security.web.server.MatcherSecurityWebFilterChain
-
- All Implemented Interfaces:
SecurityWebFilterChain
public class MatcherSecurityWebFilterChain extends java.lang.Object implements SecurityWebFilterChain
ASecurityWebFilterChain
that leverages aServerWebExchangeMatcher
to determine whichWebFilter
to 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()
TheWebFilter
to usereactor.core.publisher.Mono<java.lang.Boolean>
matches(org.springframework.web.server.ServerWebExchange exchange)
Determines if thisSecurityWebFilterChain
matches 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:SecurityWebFilterChain
Determines if thisSecurityWebFilterChain
matches the providedServerWebExchange
- Specified by:
matches
in 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:SecurityWebFilterChain
TheWebFilter
to use- Specified by:
getWebFilters
in interfaceSecurityWebFilterChain
- Returns:
-
-