Class NoOpServerSecurityContextRepository

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static NoOpServerSecurityContextRepository getInstance()  
      reactor.core.publisher.Mono<org.springframework.security.core.context.SecurityContext> load​(org.springframework.web.server.ServerWebExchange exchange)
      Loads the SecurityContext associated with the ServerWebExchange
      reactor.core.publisher.Mono<java.lang.Void> save​(org.springframework.web.server.ServerWebExchange exchange, org.springframework.security.core.context.SecurityContext context)
      Saves the SecurityContext
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • save

        public reactor.core.publisher.Mono<java.lang.Void> save​(org.springframework.web.server.ServerWebExchange exchange,
                                                                org.springframework.security.core.context.SecurityContext context)
        Description copied from interface: ServerSecurityContextRepository
        Saves the SecurityContext
        Specified by:
        save in interface ServerSecurityContextRepository
        Parameters:
        exchange - the exchange to associate to the SecurityContext
        context - the SecurityContext to save
        Returns:
        a completion notification (success or error)
      • load

        public reactor.core.publisher.Mono<org.springframework.security.core.context.SecurityContext> load​(org.springframework.web.server.ServerWebExchange exchange)
        Description copied from interface: ServerSecurityContextRepository
        Loads the SecurityContext associated with the ServerWebExchange
        Specified by:
        load in interface ServerSecurityContextRepository
        Parameters:
        exchange - the exchange to look up the SecurityContext
        Returns:
        the SecurityContext to lookup or empty if not found. Never null