Package com.axelor.auth.pac4j
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 -
Constructor Summary
ConstructorsConstructorDescriptionAxelorCsrfMatcher
(AxelorCsrfGenerator csrfTokenGenerator) AxelorCsrfMatcher
(org.pac4j.core.matching.matcher.csrf.CsrfTokenGenerator csrfTokenGenerator, String cookieName, String headerName) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Field Details
-
CSRF_MATCHER_NAME
- See Also:
-
-
Constructor Details
-
AxelorCsrfMatcher
-
AxelorCsrfMatcher
-
-
Method Details
-
matches
public boolean matches(org.pac4j.core.context.CallContext ctx) - Specified by:
matches
in interfaceorg.pac4j.core.matching.matcher.Matcher
- Overrides:
matches
in classorg.pac4j.core.matching.matcher.csrf.CsrfTokenGeneratorMatcher
-
addResponseCookieAndHeader
protected void addResponseCookieAndHeader(org.pac4j.core.context.CallContext ctx)
-