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
ConstructorsConstructorDescriptionMatcherSecurityWebFilterChain(ServerWebExchangeMatcher matcher, List<org.springframework.web.server.WebFilter> filters) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<org.springframework.web.server.WebFilter>TheWebFilterto usereactor.core.publisher.Mono<Boolean>matches(org.springframework.web.server.ServerWebExchange exchange) Determines if thisSecurityWebFilterChainmatches 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: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:
-