Class SecurityContextServerWebExchange
java.lang.Object
org.springframework.web.server.ServerWebExchangeDecorator
org.springframework.security.web.server.context.SecurityContextServerWebExchange
- All Implemented Interfaces:
org.springframework.web.server.ServerWebExchange
public class SecurityContextServerWebExchange
extends org.springframework.web.server.ServerWebExchangeDecorator
Overrides the
ServerWebExchange.getPrincipal()
with the provided
SecurityContext- Since:
- 5.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.web.server.ServerWebExchange
org.springframework.web.server.ServerWebExchange.Builder
-
Field Summary
Fields inherited from interface org.springframework.web.server.ServerWebExchange
LOG_ID_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionSecurityContextServerWebExchange
(org.springframework.web.server.ServerWebExchange delegate, reactor.core.publisher.Mono<SecurityContext> context) -
Method Summary
Methods inherited from class org.springframework.web.server.ServerWebExchangeDecorator
addUrlTransformer, checkNotModified, checkNotModified, checkNotModified, getApplicationContext, getAttributes, getDelegate, getFormData, getLocaleContext, getLogPrefix, getMultipartData, getRequest, getResponse, getSession, isNotModified, toString, transformUrl
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.web.server.ServerWebExchange
getAttribute, getAttributeOrDefault, getRequiredAttribute, mutate
-
Constructor Details
-
SecurityContextServerWebExchange
public SecurityContextServerWebExchange(org.springframework.web.server.ServerWebExchange delegate, reactor.core.publisher.Mono<SecurityContext> context)
-
-
Method Details
-
getPrincipal
- Specified by:
getPrincipal
in interfaceorg.springframework.web.server.ServerWebExchange
- Overrides:
getPrincipal
in classorg.springframework.web.server.ServerWebExchangeDecorator
-