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.
@FunctionalInterface public interface ServerCsrfTokenRequestResolver
Implementations of this interface are capable of resolving the token value of aCsrfToken
from the providedServerWebExchange
. Used by theCsrfWebFilter
.- Since:
- 5.8
- See Also:
ServerCsrfTokenRequestAttributeHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.String>
resolveCsrfTokenValue(org.springframework.web.server.ServerWebExchange exchange, CsrfToken csrfToken)
Returns the token value resolved from the providedServerWebExchange
andCsrfToken
orMono.empty()
if not available.
-
-
-
Method Detail
-
resolveCsrfTokenValue
reactor.core.publisher.Mono<java.lang.String> resolveCsrfTokenValue(org.springframework.web.server.ServerWebExchange exchange, CsrfToken csrfToken)
Returns the token value resolved from the providedServerWebExchange
andCsrfToken
orMono.empty()
if not available.- Parameters:
exchange
- theServerWebExchange
with the request being processedcsrfToken
- theCsrfToken
created by theServerCsrfTokenRepository
- Returns:
- the token value resolved from the request
-
-