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

java.lang.Object
  extended by com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.AbstractFormSubmission
      extended by com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.FormSubmission
          extended by com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.AsynchFormSubmission
All Implemented Interfaces:
XsrfCheck.Submission
Enclosing class:
XsrfCheck

public abstract static class XsrfCheck.AsynchFormSubmission
extends XsrfCheck.FormSubmission

TODO: Document this class / interface here


Field Summary
protected  FuncTestHelperFactory funcTestHelperFactory
           
 
Constructor Summary
XsrfCheck.AsynchFormSubmission(String submitId, long timeoutMS)
           
 
Method Summary
 void init(FuncTestHelperFactory funcTestHelperFactory)
          Initialise the submission with state from the checker.
abstract  boolean isOperationFinished()
           
 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.
 void submitRequest()
          Submits a request to an action that presumably is XSRF-protected and requires a token to be present.
 
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
 

Field Detail

funcTestHelperFactory

protected FuncTestHelperFactory funcTestHelperFactory
Constructor Detail

XsrfCheck.AsynchFormSubmission

public XsrfCheck.AsynchFormSubmission(String submitId,
                                      long timeoutMS)
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
Overrides:
removeToken in class XsrfCheck.AbstractFormSubmission

submitRequest

public void submitRequest()
Description copied from interface: XsrfCheck.Submission
Submits a request to an action that presumably is XSRF-protected and requires a token to be present.

Specified by:
submitRequest in interface XsrfCheck.Submission
Overrides:
submitRequest in class XsrfCheck.FormSubmission

isOperationFinished

public abstract boolean isOperationFinished()
Returns:
true if the operation has finished running

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.