Class 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:
    SecurityContextServerWebExchangeWebFilter
    • 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
    • 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
      • 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 Detail

      • SecurityContextServerWebExchange

        public SecurityContextServerWebExchange​(org.springframework.web.server.ServerWebExchange delegate,
                                                reactor.core.publisher.Mono<SecurityContext> context)
    • Method Detail

      • getPrincipal

        public <T extends java.security.Principal> reactor.core.publisher.Mono<T> getPrincipal()
        Specified by:
        getPrincipal in interface org.springframework.web.server.ServerWebExchange
        Overrides:
        getPrincipal in class org.springframework.web.server.ServerWebExchangeDecorator