Interface ServerSecurityContextRepository
-
- All Known Implementing Classes:
NoOpServerSecurityContextRepository
,WebSessionServerSecurityContextRepository
public interface ServerSecurityContextRepository
Strategy used for persisting aSecurityContext
between requests.- Since:
- 5.0
- See Also:
ReactorContextWebFilter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<SecurityContext>
load(org.springframework.web.server.ServerWebExchange exchange)
Loads the SecurityContext associated with theServerWebExchange
reactor.core.publisher.Mono<java.lang.Void>
save(org.springframework.web.server.ServerWebExchange exchange, SecurityContext context)
Saves the SecurityContext
-
-
-
Method Detail
-
save
reactor.core.publisher.Mono<java.lang.Void> save(org.springframework.web.server.ServerWebExchange exchange, SecurityContext context)
Saves the SecurityContext- Parameters:
exchange
- the exchange to associate to the SecurityContextcontext
- the SecurityContext to save- Returns:
- a completion notification (success or error)
-
load
reactor.core.publisher.Mono<SecurityContext> load(org.springframework.web.server.ServerWebExchange exchange)
Loads the SecurityContext associated with theServerWebExchange
- Parameters:
exchange
- the exchange to look up theSecurityContext
- Returns:
- the
SecurityContext
to lookup or empty if not found. Never null
-
-