javax.mvc.MvcContext class as mvc.csrf.
CsrfProtected
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Csrf.CsrfOptions
Options for property |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | CSRF_HEADER_NAME
Property that can be used to configure the name of the HTTP header used for the CSRF token. |
| public static final String | CSRF_PROTECTION
Property that can be used to globally enable CSRF protection for an application. |
| public static final String | DEFAULT_CSRF_HEADER_NAME
The default value for |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: name of CSRF header.Returns the name of the CSRF form field or HTTP request header. |
| public String |
| CSRF_HEADER_NAME | back to summary |
|---|---|
| public static final String CSRF_HEADER_NAME Property that can be used to configure the name of the HTTP header used for the CSRF token. | |
| CSRF_PROTECTION | back to summary |
|---|---|
| public static final String CSRF_PROTECTION Property that can be used to globally enable CSRF protection for an application.
Values of this property must be of type | |
| DEFAULT_CSRF_HEADER_NAME | back to summary |
|---|---|
| public static final String DEFAULT_CSRF_HEADER_NAME The default value for | |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of the CSRF form field or HTTP request header. This name is typically a constant.
| |
| getToken | back to summary |
|---|---|
| public String getToken() Returns the value of the CSRF token.
| |
Csrf#CSRF_PROTECTION.
| Modifier and Type | Field and Description |
|---|---|
| public static final Csrf. | EXPLICIT
Enabling CSRF requires use of |
| public static final Csrf. | IMPLICIT
CSRF enabled automatically for all controllers. |
| public static final Csrf. | OFF
CSRF protection not enabled. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Csrf. | |
| public static Csrf. |
| EXPLICIT | back to summary |
|---|---|
| public static final Csrf. Enabling CSRF requires use of | |
| IMPLICIT | back to summary |
|---|---|
| public static final Csrf. CSRF enabled automatically for all controllers. | |
| OFF | back to summary |
|---|---|
| public static final Csrf. CSRF protection not enabled. | |
| CsrfOptions | back to summary |
|---|---|
| private CsrfOptions() | |
| valueOf | back to summary |
|---|---|
| public static Csrf. | |
| values | back to summary |
|---|---|
| public static Csrf. | |