public class NoOpServerSecurityContextRepository extends java.lang.Object implements ServerSecurityContextRepository
ServerSecurityContextRepository. Used in stateless applications.| Modifier and Type | Method and 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
|
public reactor.core.publisher.Mono<java.lang.Void> save(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.security.core.context.SecurityContext context)
ServerSecurityContextRepositorysave in interface ServerSecurityContextRepositoryexchange - the exchange to associate to the SecurityContextcontext - the SecurityContext to savepublic reactor.core.publisher.Mono<org.springframework.security.core.context.SecurityContext> load(org.springframework.web.server.ServerWebExchange exchange)
ServerSecurityContextRepositoryServerWebExchangeload in interface ServerSecurityContextRepositoryexchange - the exchange to look up the SecurityContextSecurityContext to lookup or empty if not found. Never nullpublic static NoOpServerSecurityContextRepository getInstance()