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.
@FunctionalInterface public interface CsrfTokenGenerator
CSRF token generator.- Since:
- 1.8.0
- Author:
- Jerome Leleu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
get(WebContext context, SessionStore sessionStore)
Get the CSRF token from the session or create it if it doesn't exist.
-
-
-
Method Detail
-
get
java.lang.String get(WebContext context, SessionStore sessionStore)
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
-
-