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
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder forRequestMatcherDelegatingAuthenticationManagerResolver. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forRequestMatcherDelegatingAuthorizationManager.reactor.core.publisher.Mono<ReactiveAuthenticationManager>resolve(org.springframework.web.server.ServerWebExchange exchange) voidsetDefaultAuthenticationManager(ReactiveAuthenticationManager defaultAuthenticationManager) Set the defaultReactiveAuthenticationManagerto 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:
resolvein interfaceReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange>
-
setDefaultAuthenticationManager
public void setDefaultAuthenticationManager(ReactiveAuthenticationManager defaultAuthenticationManager) Set the defaultReactiveAuthenticationManagerto use when a request does not match- Parameters:
defaultAuthenticationManager- the defaultReactiveAuthenticationManagerto use
-
builder
Creates a builder forRequestMatcherDelegatingAuthorizationManager.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builderinstance
-