All Known Implementing Classes:
NoOpServerSecurityContextRepository , WebSessionServerSecurityContextRepository
public interface ServerSecurityContextRepository
Strategy used for persisting a SecurityContext between requests.
Since:
See Also:
  • ReactorContextWebFilter
  • Description
    reactor.core.publisher.Mono< SecurityContext >
    load (org.springframework.web.server.ServerWebExchange exchange)
    Loads the SecurityContext associated with the ServerWebExchange
    reactor.core.publisher.Mono< Void >
    save (org.springframework.web.server.ServerWebExchange exchange, SecurityContext context)
    Saves the SecurityContext
    reactor.core.publisher.Mono< Void > save (org.springframework.web.server.ServerWebExchange exchange, SecurityContext context)
    Saves the SecurityContext
    Parameters:
    exchange - the exchange to associate to the SecurityContext
    context - the SecurityContext to save
    Returns:
    a completion notification (success or error)
    reactor.core.publisher.Mono< SecurityContext > load (org.springframework.web.server.ServerWebExchange exchange)
    Loads the SecurityContext associated with the ServerWebExchange
    Parameters:
    exchange - the exchange to look up the SecurityContext
    Returns:
    the SecurityContext to lookup or empty if not found. Never null