Class AxelorCsrfMatcher

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

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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AxelorCsrfMatcher(org.pac4j.core.matching.matcher.csrf.CsrfTokenGenerator csrfTokenGenerator, String cookieName, String headerName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addResponseCookieAndHeader(org.pac4j.core.context.CallContext ctx)
     
    boolean
    matches(org.pac4j.core.context.CallContext ctx)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • AxelorCsrfMatcher

      @Inject public AxelorCsrfMatcher(AxelorCsrfGenerator csrfTokenGenerator)
    • AxelorCsrfMatcher

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

    • matches

      public boolean matches(org.pac4j.core.context.CallContext ctx)
      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.CallContext ctx)