public interface Csrf
MvcContext
class as mvc.csrf
.CsrfProtected
Modifier and Type | Interface and Description |
---|---|
static class |
Csrf.CsrfOptions
Options for property
CSRF_PROTECTION . |
Modifier and Type | Field and Description |
---|---|
static String |
CSRF_HEADER_NAME
Property that can be used to configure the name of the HTTP header used for
the CSRF token.
|
static String |
CSRF_PROTECTION
Property that can be used to globally enable CSRF protection for an application.
|
static String |
DEFAULT_CSRF_HEADER_NAME
The default value for
CSRF_HEADER_NAME . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the CSRF form field or HTTP request header.
|
String |
getToken()
Returns the value of the CSRF token.
|
static final String CSRF_PROTECTION
Csrf.CsrfOptions
.static final String CSRF_HEADER_NAME
static final String DEFAULT_CSRF_HEADER_NAME
CSRF_HEADER_NAME
.Copyright © 2020 Ivar Grimstad. All rights reserved.