Class CsrfTokenGeneratorMatcher
- java.lang.Object
-
- org.pac4j.core.matching.matcher.csrf.CsrfTokenGeneratorMatcher
-
-
Constructor Summary
Constructors Constructor Description CsrfTokenGeneratorMatcher(CsrfTokenGenerator csrfTokenGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CsrfTokenGenerator
getCsrfTokenGenerator()
java.lang.String
getDomain()
java.lang.Boolean
getHttpOnly()
java.lang.Integer
getMaxAge()
java.lang.String
getPath()
java.lang.String
getSameSitePolicy()
java.lang.Boolean
getSecure()
boolean
matches(WebContext context, SessionStore sessionStore)
Check if the web context matches.void
setCsrfTokenGenerator(CsrfTokenGenerator csrfTokenGenerator)
void
setDomain(java.lang.String domain)
void
setHttpOnly(java.lang.Boolean httpOnly)
void
setMaxAge(java.lang.Integer maxAge)
void
setPath(java.lang.String path)
void
setSameSitePolicy(java.lang.String sameSitePolicy)
void
setSecure(java.lang.Boolean secure)
java.lang.String
toString()
-
-
-
Constructor Detail
-
CsrfTokenGeneratorMatcher
public CsrfTokenGeneratorMatcher(CsrfTokenGenerator csrfTokenGenerator)
-
-
Method Detail
-
matches
public boolean matches(WebContext context, SessionStore sessionStore)
Description copied from interface:Matcher
Check if the web context matches.
-
getCsrfTokenGenerator
public CsrfTokenGenerator getCsrfTokenGenerator()
-
setCsrfTokenGenerator
public void setCsrfTokenGenerator(CsrfTokenGenerator csrfTokenGenerator)
-
getDomain
public java.lang.String getDomain()
-
setDomain
public void setDomain(java.lang.String domain)
-
getPath
public java.lang.String getPath()
-
setPath
public void setPath(java.lang.String path)
-
getHttpOnly
public java.lang.Boolean getHttpOnly()
-
setHttpOnly
public void setHttpOnly(java.lang.Boolean httpOnly)
-
getSecure
public java.lang.Boolean getSecure()
-
setSecure
public void setSecure(java.lang.Boolean secure)
-
getMaxAge
public java.lang.Integer getMaxAge()
-
setMaxAge
public void setMaxAge(java.lang.Integer maxAge)
-
getSameSitePolicy
public java.lang.String getSameSitePolicy()
-
setSameSitePolicy
public void setSameSitePolicy(java.lang.String sameSitePolicy)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-