Interface CsrfTokenRequestResolver
-
- All Known Subinterfaces:
CsrfTokenRequestHandler
- All Known Implementing Classes:
CsrfTokenRequestAttributeHandler
,XorCsrfTokenRequestAttributeHandler
- 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 CsrfTokenRequestResolver
Implementations of this interface are capable of resolving the token value of aCsrfToken
from the providedHttpServletRequest
. Used by theCsrfFilter
.- Since:
- 5.8
- See Also:
CsrfTokenRequestAttributeHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
resolveCsrfTokenValue(javax.servlet.http.HttpServletRequest request, CsrfToken csrfToken)
Returns the token value resolved from the providedHttpServletRequest
andCsrfToken
ornull
if not available.
-
-
-
Method Detail
-
resolveCsrfTokenValue
java.lang.String resolveCsrfTokenValue(javax.servlet.http.HttpServletRequest request, CsrfToken csrfToken)
Returns the token value resolved from the providedHttpServletRequest
andCsrfToken
ornull
if not available.- Parameters:
request
- theHttpServletRequest
being processedcsrfToken
- theCsrfToken
created by theCsrfTokenRepository
- Returns:
- the token value resolved from the request
-
-