Class CsrfTokenGeneratorMatcher

java.lang.Object
org.pac4j.core.matching.matcher.csrf.CsrfTokenGeneratorMatcher
All Implemented Interfaces:
Matcher

public class CsrfTokenGeneratorMatcher extends Object implements Matcher
Matcher which creates a new CSRF token and adds it as a request attribute and as a cookie (AngularJS).
Since:
4.0.0
Author:
Jerome Leleu
  • Constructor Details

    • CsrfTokenGeneratorMatcher

      public CsrfTokenGeneratorMatcher(CsrfTokenGenerator csrfTokenGenerator)
  • Method Details

    • matches

      public boolean matches(WebContext context, SessionStore sessionStore)
      Description copied from interface: Matcher
      Check if the web context matches.
      Specified by:
      matches in interface Matcher
      Parameters:
      context - the web context
      sessionStore - the session store
      Returns:
      whether the web context matches