|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.web.csrf.CsrfToken
public final class CsrfToken
A CSRF token that is used to protect against CSRF attacks.
Constructor Summary | |
---|---|
CsrfToken(String headerName,
String parameterName,
String token)
Creates a new instance |
Method Summary | |
---|---|
String |
getHeaderName()
Gets the HTTP header that the CSRF is populated on the response and can be placed on requests instead of the parameter. |
String |
getParameterName()
Gets the HTTP parameter name that should contain the token. |
String |
getToken()
Gets the token value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsrfToken(String headerName, String parameterName, String token)
headerName
- the HTTP header name to useparameterName
- the HTTP parameter name to usetoken
- the value of the token (i.e. expected value of the HTTP parameter of parametername).Method Detail |
---|
public String getHeaderName()
public String getParameterName()
public String getToken()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |