com.atlassian.jira.functest.framework.security.xsrf
Class XsrfCheck.AbstractLinkSubmission
java.lang.Object
com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.AbstractLinkSubmission
- All Implemented Interfaces:
- XsrfCheck.Submission
- Direct Known Subclasses:
- XsrfCheck.LinkWithIdSubmission, XsrfCheck.LinkWithTextSubmission, XsrfCheck.XPathLinkSubmission
- Enclosing class:
- XsrfCheck
public abstract static class XsrfCheck.AbstractLinkSubmission
- extends Object
- implements XsrfCheck.Submission
Abstract implementation of Submission for mutative actions accessed by links.
Method Summary |
abstract String |
getLink()
|
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. |
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.AbstractLinkSubmission
public XsrfCheck.AbstractLinkSubmission()
getLink
public abstract String getLink()
throws Exception
- Throws:
Exception
removeToken
public void removeToken()
throws Exception
- 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
- Throws:
Exception
- e
submitRequest
public void submitRequest()
throws Exception
- 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
- Throws:
Exception
- e
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.