com.atlassian.sal.core.xsrf
Class XsrfRequestValidatorImpl
java.lang.Object
com.atlassian.sal.core.xsrf.XsrfRequestValidatorImpl
- All Implemented Interfaces:
- XsrfRequestValidator
public class XsrfRequestValidatorImpl
- extends Object
- implements XsrfRequestValidator
Provides an implementation of checking if a request
contains either a valid Cross-site request forgery(xsrf) token or a
valid xsrf header XsrfHeaderValidator.TOKEN_HEADER.
- Since:
- v2.10.18
|
Method Summary |
boolean |
validateRequestPassesXsrfChecks(javax.servlet.http.HttpServletRequest request)
Returns true iff the given request has a valid xsrf token or a
valid xsrf header. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XsrfRequestValidatorImpl
public XsrfRequestValidatorImpl(XsrfTokenValidator tokenValidator)
validateRequestPassesXsrfChecks
public boolean validateRequestPassesXsrfChecks(javax.servlet.http.HttpServletRequest request)
- Returns true iff the given request has a valid xsrf token or a
valid xsrf header.
- Specified by:
validateRequestPassesXsrfChecks in interface XsrfRequestValidator
- Parameters:
request - the request to check.
- Returns:
- true iff the given request has a valid xsrf token or a
valid xsrf header.
Copyright © 2015 Atlassian. All rights reserved.