com.atlassian.jira.functest.framework.security.xsrf
Class XsrfCheck.AsynchFormSubmission
java.lang.Object
com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.AbstractFormSubmission
com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.FormSubmission
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
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 |
funcTestHelperFactory
protected FuncTestHelperFactory funcTestHelperFactory
XsrfCheck.AsynchFormSubmission
public XsrfCheck.AsynchFormSubmission(String submitId,
long timeoutMS)
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-2012 Atlassian. All Rights Reserved.