public class ReactiveSecurityContextHolder
extends java.lang.Object
SecurityContext into a Context.| Constructor and Description |
|---|
ReactiveSecurityContextHolder() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Function<reactor.util.context.Context,reactor.util.context.Context> |
clearContext()
Clears the
Mono<SecurityContext> from Reactor Context |
static reactor.core.publisher.Mono<SecurityContext> |
getContext()
Gets the
Mono<SecurityContext> from Reactor Context |
static reactor.util.context.Context |
withAuthentication(Authentication authentication)
A shortcut for
withSecurityContext(Mono) |
static reactor.util.context.Context |
withSecurityContext(reactor.core.publisher.Mono<? extends SecurityContext> securityContext)
Creates a Reactor
Context that contains the Mono<SecurityContext>
that can be merged into another Context |
public static reactor.core.publisher.Mono<SecurityContext> getContext()
Mono<SecurityContext> from Reactor ContextMono<SecurityContext>public static java.util.function.Function<reactor.util.context.Context,reactor.util.context.Context> clearContext()
Mono<SecurityContext> from Reactor ContextMono<Void> which only replays complete and error signals
from clearing the context.public static reactor.util.context.Context withSecurityContext(reactor.core.publisher.Mono<? extends SecurityContext> securityContext)
Context that contains the Mono<SecurityContext>
that can be merged into another ContextsecurityContext - the Mono<SecurityContext> to set in the returned
Reactor ContextContext that contains the Mono<SecurityContext>public static reactor.util.context.Context withAuthentication(Authentication authentication)
withSecurityContext(Mono)authentication - the Authentication to be usedContext that contains the Mono<SecurityContext>