Interface ServerCsrfTokenRequestResolver
- All Known Subinterfaces:
- ServerCsrfTokenRequestHandler
- All Known Implementing Classes:
- ServerCsrfTokenRequestAttributeHandler,- XorServerCsrfTokenRequestAttributeHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Implementations of this interface are capable of resolving the token value of a
 
CsrfToken from the provided ServerWebExchange. Used by the
 CsrfWebFilter.- Since:
- 5.8
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<String>resolveCsrfTokenValue(org.springframework.web.server.ServerWebExchange exchange, CsrfToken csrfToken) Returns the token value resolved from the providedServerWebExchangeandCsrfTokenorMono.empty()if not available.
- 
Method Details- 
resolveCsrfTokenValuereactor.core.publisher.Mono<String> resolveCsrfTokenValue(org.springframework.web.server.ServerWebExchange exchange, CsrfToken csrfToken) Returns the token value resolved from the providedServerWebExchangeandCsrfTokenorMono.empty()if not available.- Parameters:
- exchange- the- ServerWebExchangewith the request being processed
- csrfToken- the- CsrfTokencreated by the- ServerCsrfTokenRepository
- Returns:
- the token value resolved from the request
 
 
-