Class AxelorCsrfMatcher

  • All Implemented Interfaces:
    org.pac4j.core.matching.matcher.Matcher

    @Singleton
    public class AxelorCsrfMatcher
    extends org.pac4j.core.matching.matcher.csrf.CsrfTokenGeneratorMatcher
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addResponseCookieAndHeader​(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)  
      boolean matches​(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)  
      • Methods inherited from class org.pac4j.core.matching.matcher.csrf.CsrfTokenGeneratorMatcher

        getCsrfTokenGenerator, getDomain, getHttpOnly, getMaxAge, getPath, getSameSitePolicy, getSecure, isAddTokenAsAttribute, isAddTokenAsCookie, isAddTokenAsHeader, setAddTokenAsAttribute, setAddTokenAsCookie, setAddTokenAsHeader, setCsrfTokenGenerator, setDomain, setHttpOnly, setMaxAge, setPath, setSameSitePolicy, setSecure, toString
    • Constructor Detail

      • AxelorCsrfMatcher

        @Inject
        public AxelorCsrfMatcher​(AxelorCsrfGenerator csrfTokenGenerator)
      • AxelorCsrfMatcher

        public AxelorCsrfMatcher​(org.pac4j.core.matching.matcher.csrf.CsrfTokenGenerator csrfTokenGenerator,
                                 String cookieName,
                                 String headerName)
    • Method Detail

      • matches

        public boolean matches​(org.pac4j.core.context.WebContext context,
                               org.pac4j.core.context.session.SessionStore sessionStore)
        Specified by:
        matches in interface org.pac4j.core.matching.matcher.Matcher
        Overrides:
        matches in class org.pac4j.core.matching.matcher.csrf.CsrfTokenGeneratorMatcher
      • addResponseCookieAndHeader

        protected void addResponseCookieAndHeader​(org.pac4j.core.context.WebContext context,
                                                  org.pac4j.core.context.session.SessionStore sessionStore)