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 Modifier and Type Field Description static String
CSRF_MATCHER_NAME
-
Constructor Summary
Constructors Constructor Description AxelorCsrfMatcher(AxelorCsrfGenerator csrfTokenGenerator)
AxelorCsrfMatcher(org.pac4j.core.matching.matcher.csrf.CsrfTokenGenerator csrfTokenGenerator, String cookieName, String headerName)
-
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
-
-
-
-
Field Detail
-
CSRF_MATCHER_NAME
public static final String CSRF_MATCHER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AxelorCsrfMatcher
@Inject public AxelorCsrfMatcher(AxelorCsrfGenerator csrfTokenGenerator)
-
-
Method Detail
-
matches
public boolean matches(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)
- 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.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)
-
-