Class WebSessionServerSecurityContextRepository

    • Field Detail


        public static final java.lang.String DEFAULT_SPRING_SECURITY_CONTEXT_ATTR_NAME
        The default session attribute name to save and load the SecurityContext
        See Also:
        Constant Field Values
    • Constructor Detail

      • WebSessionServerSecurityContextRepository

        public WebSessionServerSecurityContextRepository()
    • Method Detail

      • setSpringSecurityContextAttrName

        public void setSpringSecurityContextAttrName​(java.lang.String springSecurityContextAttrName)
        Sets the session attribute name used to save and load the SecurityContext
        springSecurityContextAttrName - the session attribute name to use to save and load the SecurityContext
      • save

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