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 Details

    • MockXsrfTokenValidator

      public MockXsrfTokenValidator()
  • Method Details

    • validateFormEncodedToken

      public boolean validateFormEncodedToken(javax.servlet.http.HttpServletRequest request)
      Specified by:
      validateFormEncodedToken in interface com.atlassian.sal.api.xsrf.XsrfTokenValidator
    • getXsrfParameterName

      public String getXsrfParameterName()
      Specified by:
      getXsrfParameterName in interface com.atlassian.sal.api.xsrf.XsrfTokenValidator