public class CSRFToken extends Object implements Serializable
| Constructor and Description |
|---|
CSRFToken(String token)
Constructs a new token with the given value, and default values for both
headerName and parameterName. |
CSRFToken(String headerName,
String parameterName,
String token)
Constructs a new token with the given Header Name, Parameter Name and Value.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHeaderName()
Returns the name of the header that is expected to contain the CSRF token.
|
String |
getParameterName()
Returns the name of the form parameter that is expected to contain the CSRF token.
|
String |
getToken()
Returns the value of this token.
|
public CSRFToken(String token)
headerName and parameterName.token - The value of newly created tokenpublic CSRFToken(String headerName, String parameterName, String token)
headerName - The name of the header that is expected to contain the CSRF tokenparameterName - The name of the form parameter that is expected to contain the CSRF tokentoken - The value of newly created tokenpublic String getHeaderName()
public String getParameterName()
public String getToken()
Copyright © 2018 FenixEdu. All rights reserved.