Class MatcherSecurityWebFilterChain
java.lang.Object
org.springframework.security.web.server.MatcherSecurityWebFilterChain
- All Implemented Interfaces:
SecurityWebFilterChain
A
SecurityWebFilterChain
that leverages a ServerWebExchangeMatcher
to
determine which WebFilter
to execute.- Since:
- 5.0
-
Constructor Summary
ConstructorDescriptionMatcherSecurityWebFilterChain
(ServerWebExchangeMatcher matcher, List<org.springframework.web.server.WebFilter> filters) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<org.springframework.web.server.WebFilter>
TheWebFilter
to usereactor.core.publisher.Mono<Boolean>
matches
(org.springframework.web.server.ServerWebExchange exchange) Determines if thisSecurityWebFilterChain
matches the providedServerWebExchange
-
Constructor Details
-
MatcherSecurityWebFilterChain
public MatcherSecurityWebFilterChain(ServerWebExchangeMatcher matcher, List<org.springframework.web.server.WebFilter> filters)
-
-
Method Details
-
matches
public reactor.core.publisher.Mono<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:
-