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 java.lang.Object implements ReactiveAuthenticationManagerResolver<org.springframework.web.server.ServerWebExchange>
AReactiveAuthenticationManagerResolver
that returns aReactiveAuthenticationManager
instances based upon the type ofServerWebExchange
passed intoresolve(ServerWebExchange)
.- Since:
- 5.7
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerWebExchangeDelegatingReactiveAuthenticationManagerResolver.Builder
A builder forRequestMatcherDelegatingAuthenticationManagerResolver
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerWebExchangeDelegatingReactiveAuthenticationManagerResolver.Builder
builder()
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 Detail
-
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
public static ServerWebExchangeDelegatingReactiveAuthenticationManagerResolver.Builder builder()
Creates a builder forRequestMatcherDelegatingAuthorizationManager
.- Returns:
- the new
RequestMatcherDelegatingAuthorizationManager.Builder
instance
-
-