public static interface

XsrfCheck.Submission

com.atlassian.jira.functest.framework.security.xsrf.XsrfCheck.Submission
Known Indirect Subclasses

Class Overview

Used to define the implementation of removing a token from a request and sending a request

Summary

Public Methods
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.

Public Methods

public void init (FuncTestHelperFactory funcTestHelperFactory)

Initialise the submission with state from the checker.

Parameters
funcTestHelperFactory factory

public 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.

Throws
Exception e

public void submitRequest ()

Submits a request to an action that presumably is XSRF-protected and requires a token to be present.

Throws
Exception e