Package it.com.atlassian.confluence.sal
Class MockXsrfTokenValidator
java.lang.Object
it.com.atlassian.confluence.sal.MockXsrfTokenValidator
- All Implemented Interfaces:
com.atlassian.sal.api.xsrf.XsrfTokenValidator
public class MockXsrfTokenValidator
extends Object
implements com.atlassian.sal.api.xsrf.XsrfTokenValidator
- Since:
- 7.0.1 In production, ConfluenceXsrfTokenValidator is imported via osgiServiceRegistry from sal plugin, but that's not available in integration tests so we have a dummy impl here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
validateFormEncodedToken
(javax.servlet.http.HttpServletRequest request)
-
Constructor Details
-
MockXsrfTokenValidator
public MockXsrfTokenValidator()
-
-
Method Details
-
validateFormEncodedToken
public boolean validateFormEncodedToken(javax.servlet.http.HttpServletRequest request) - Specified by:
validateFormEncodedToken
in interfacecom.atlassian.sal.api.xsrf.XsrfTokenValidator
-
getXsrfParameterName
- Specified by:
getXsrfParameterName
in interfacecom.atlassian.sal.api.xsrf.XsrfTokenValidator
-