public final class XsrfHeaderValidator extends Object
TOKEN_HEADER header.| Modifier and Type | Field and Description |
|---|---|
static String |
TOKEN_HEADER |
| Constructor and Description |
|---|
XsrfHeaderValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidHeaderValue(String headerValue)
Returns true if the given header value is valid for the
TOKEN_HEADER header. |
boolean |
requestHasValidXsrfHeader(javax.servlet.http.HttpServletRequest request)
Returns true if the given HttpServletRequest contains a valid
TOKEN_HEADER header. |
public static final String TOKEN_HEADER
public boolean requestHasValidXsrfHeader(javax.servlet.http.HttpServletRequest request)
TOKEN_HEADER header.request - the request to check.TOKEN_HEADER
header, otherwise returns false.public boolean isValidHeaderValue(String headerValue)
TOKEN_HEADER header.headerValue - the value of the TOKEN_HEADER header.TOKEN_HEADER header
is valid, otherwise returns false.Copyright © 2015 Atlassian. All rights reserved.