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 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 context
        sessionStore - the session store
        Returns:
        the CSRF token