Interface CsrfTokenGenerator
- All Known Implementing Classes:
DefaultCsrfTokenGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
CSRF token generator.
- Since:
- 1.8.0
- Author:
- Jerome Leleu
-
Method Summary
Modifier and TypeMethodDescriptionget
(WebContext context, SessionStore sessionStore) Get the CSRF token from the session or create it if it doesn't exist.
-
Method Details
-
get
Get the CSRF token from the session or create it if it doesn't exist.- Parameters:
context
- the current web contextsessionStore
- the session store- Returns:
- the CSRF token
-