public class KnotxCSRFOptions extends Object
| Constructor and Description |
|---|
KnotxCSRFOptions()
Default constructor
|
KnotxCSRFOptions(io.vertx.core.json.JsonObject json)
Create an settings from JSON
|
KnotxCSRFOptions(KnotxCSRFOptions other)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCookieName() |
String |
getCookiePath() |
String |
getHeaderName() |
String |
getSecret() |
long |
getTimeout() |
KnotxCSRFOptions |
setCookieName(String cookieName)
Set the name of the CSRF cookie
|
KnotxCSRFOptions |
setCookiePath(String cookiePath)
Set of the path of the CSRF cookie
|
KnotxCSRFOptions |
setHeaderName(String headerName)
Set the CSRF token header name
|
KnotxCSRFOptions |
setSecret(String secret)
Set the secret used to generate CSRF token
|
KnotxCSRFOptions |
setTimeout(long timeout)
Set the timeout of the CSRF token
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public KnotxCSRFOptions()
public KnotxCSRFOptions(KnotxCSRFOptions other)
other - the instance to copypublic KnotxCSRFOptions(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public String getCookieName()
public KnotxCSRFOptions setCookieName(String cookieName)
cookieName - name of the cookiepublic String getCookiePath()
public KnotxCSRFOptions setCookiePath(String cookiePath)
cookiePath - path of the cookie, e.g. '/'public String getHeaderName()
public KnotxCSRFOptions setHeaderName(String headerName)
headerName - header namepublic String getSecret()
public KnotxCSRFOptions setSecret(String secret)
secret - a secret Stringpublic long getTimeout()
public KnotxCSRFOptions setTimeout(long timeout)
timeout - a token timeoutCopyright © 2016–2020. All rights reserved.