Class WebSessionServerSecurityContextRepository

    • Field Detail

      • DEFAULT_SPRING_SECURITY_CONTEXT_ATTR_NAME

        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
        Parameters:
        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
        Parameters:
        exchange - the exchange to associate to the SecurityContext
        context - the SecurityContext to save
        Returns:
        a completion notification (success or error)