public class CSRF extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CSRF_TOKEN_NAME |
static String |
CSRF_TOKEN_VALUE |
static String |
HTTP_HEADER_NAME |
Constructor and Description |
---|
CSRF() |
Modifier and Type | Method and Description |
---|---|
static void |
disableVerification() |
static void |
enableVerification() |
static String |
name() |
static void |
setTokenProvider(org.javalite.activeweb.CSRF.TokenProvider provider)
Use in case you want to use a project-level provider.
|
static String |
token() |
static boolean |
verificationEnabled() |
public static final String CSRF_TOKEN_NAME
public static final String CSRF_TOKEN_VALUE
public static final String HTTP_HEADER_NAME
public static void setTokenProvider(org.javalite.activeweb.CSRF.TokenProvider provider)
provider
- instance of a provider.public static boolean verificationEnabled()
public static void enableVerification()
public static void disableVerification()
public static String token()
public static String name()
Copyright © 2019 JavaLite. All rights reserved.