Class ServerWebExchangeDelegatingReactiveAuthenticationManagerResolver
java.lang.Object
org.springframework.security.web.server.authentication.ServerWebExchangeDelegatingReactiveAuthenticationManagerResolver
- All Implemented Interfaces:
ReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange>
public final class ServerWebExchangeDelegatingReactiveAuthenticationManagerResolver
extends Object
implements ReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange>
A
ReactiveAuthenticationManagerResolver
that returns a
ReactiveAuthenticationManager
instances based upon the type of
ServerWebExchange
passed into resolve(ServerWebExchange)
.- Since:
- 5.7
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forRequestMatcherDelegatingAuthorizationManager
.reactor.core.publisher.Mono<ReactiveAuthenticationManager>
resolve
(org.springframework.web.server.ServerWebExchange exchange) void
setDefaultAuthenticationManager
(ReactiveAuthenticationManager defaultAuthenticationManager) Set the defaultReactiveAuthenticationManager
to use when a request does not match
-
Method Details
-
resolve
public reactor.core.publisher.Mono<ReactiveAuthenticationManager> resolve(org.springframework.web.server.ServerWebExchange exchange) - Specified by:
resolve
in interfaceReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange>
-
setDefaultAuthenticationManager
public void setDefaultAuthenticationManager(ReactiveAuthenticationManager defaultAuthenticationManager) Set the defaultReactiveAuthenticationManager
to use when a request does not match- Parameters:
defaultAuthenticationManager
- the defaultReactiveAuthenticationManager
to use
-
builder
Creates a builder forRequestMatcherDelegatingAuthorizationManager
.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builder
instance
-