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

java.lang.Object
  extended by 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.


Field Summary
protected  FuncTestHelperFactory funcTestHelperFactory
           
 
Constructor Summary
XsrfCheck.AbstractLinkSubmission()
           
 
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
 
Methods inherited from interface com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.Submission
init
 

Field Detail

funcTestHelperFactory

protected FuncTestHelperFactory funcTestHelperFactory
Constructor Detail

XsrfCheck.AbstractLinkSubmission

public XsrfCheck.AbstractLinkSubmission()
Method Detail

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.