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 theServerWebExchange.getPrincipal()
with the provided SecurityContext- Since:
- 5.0
- See Also:
SecurityContextServerWebExchangeWebFilter
-
-
Constructor Summary
Constructors Constructor Description SecurityContextServerWebExchange(org.springframework.web.server.ServerWebExchange delegate, reactor.core.publisher.Mono<SecurityContext> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.security.Principal>
reactor.core.publisher.Mono<T>getPrincipal()
-
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
-
-
-
-
Constructor Detail
-
SecurityContextServerWebExchange
public SecurityContextServerWebExchange(org.springframework.web.server.ServerWebExchange delegate, reactor.core.publisher.Mono<SecurityContext> context)
-
-