public interface Csrf
MvcContext
class as mvc.encoders
.
It is RECOMMENDED for instances of this class to be in session scope.CsrfValid
Modifier and Type | Interface and Description |
---|---|
static class |
Csrf.CsrfOptions
Options for property
CSRF_PROTECTION . |
Modifier and Type | Field and Description |
---|---|
static String |
CSRF_PROTECTION
Property that can be used to globally enable CSRF protection for an application.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the CSRF header.
|
String |
getToken()
Returns the value of the CSRF token.
|
static final String CSRF_PROTECTION
Csrf.CsrfOptions
.Application.getProperties()
,
Constant Field ValuesCopyright © 2015 Oracle Corporation. All rights reserved.