Package org.javalite.activeweb
Class CSRF
java.lang.Object
org.javalite.activeweb.CSRF
Responsible for generating tokens for CSRF protection support.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
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
-
Field Details
-
CSRF_TOKEN_NAME
- See Also:
- Constant Field Values
-
CSRF_TOKEN_VALUE
- See Also:
- Constant Field Values
-
HTTP_HEADER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
CSRF
public CSRF()
-
-
Method Details
-
setTokenProvider
public static void setTokenProvider(org.javalite.activeweb.CSRF.TokenProvider provider)Use in case you want to use a project-level provider.- Parameters:
provider
- instance of a provider.
-
verificationEnabled
public static boolean verificationEnabled() -
enableVerification
public static void enableVerification() -
disableVerification
public static void disableVerification() -
token
-
name
-