com.atlassian.jira.functest.framework.security.xsrf
Class XsrfCheck.AbstractFormSubmission

java.lang.Object
  extended by com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.AbstractFormSubmission
All Implemented Interfaces:
XsrfCheck.Submission
Direct Known Subclasses:
XsrfCheck.FormSubmission, XsrfCheck.FormSubmissionWithId
Enclosing class:
XsrfCheck

public abstract static class XsrfCheck.AbstractFormSubmission
extends Object
implements XsrfCheck.Submission

Base class for form-based submission


Field Summary
protected  FuncTestHelperFactory funcTestHelperFactory
           
 
Constructor Summary
XsrfCheck.AbstractFormSubmission()
           
 
Method Summary
 void init(FuncTestHelperFactory funcTestHelperFactory)
          Initialise the submission with state from the checker.
 void removeToken()
          Removes the token from the state so that we can test what happens when a "dodgy token" is submitted to an action that is expecting a good token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.Submission
init, submitRequest
 

Field Detail

funcTestHelperFactory

protected FuncTestHelperFactory funcTestHelperFactory
Constructor Detail

XsrfCheck.AbstractFormSubmission

public XsrfCheck.AbstractFormSubmission()
Method Detail

removeToken

public void removeToken()
Description copied from interface: XsrfCheck.Submission
Removes the token from the state so that we can test what happens when a "dodgy token" is submitted to an action that is expecting a good token.

Specified by:
removeToken in interface XsrfCheck.Submission

init

public void init(FuncTestHelperFactory funcTestHelperFactory)
Description copied from interface: XsrfCheck.Submission
Initialise the submission with state from the checker.

Specified by:
init in interface XsrfCheck.Submission
Parameters:
funcTestHelperFactory - factory


Copyright © 2002-2014 Atlassian. All Rights Reserved.