Package org.camunda.bpm
Class CsrfPreventionIT
- java.lang.Object
-
- org.camunda.bpm.AbstractWebIntegrationTest
-
- org.camunda.bpm.CsrfPreventionIT
-
public class CsrfPreventionIT extends AbstractWebIntegrationTest
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.AbstractWebIntegrationTest
APP_BASE_PATH, appUrl, client, connection, defaultHttpClient, HOST_NAME, httpPort, service, TASKLIST_PATH, testProperties, testUtil
-
-
Constructor Summary
Constructors Constructor Description CsrfPreventionIT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkCookieSet(com.sun.jersey.api.client.ClientResponse response)
protected boolean
checkXsrfTokenHeaderPresent(com.sun.jersey.api.client.ClientResponse response)
void
createClient()
void
shouldCheckPresenceOfCsrfPreventionCookie()
void
shouldRejectModifyingRequest()
-
Methods inherited from class org.camunda.bpm.AbstractWebIntegrationTest
before, createClient, destroyClient, getCookieHeaders, getCookieValue, getHeaders, getRestCtxPath, getWebappCtxPath, getXsrfCookieValue, getXsrfTokenHeader, performRequest, preventRaceConditions
-
-
-
-
Method Detail
-
shouldCheckPresenceOfCsrfPreventionCookie
public void shouldCheckPresenceOfCsrfPreventionCookie()
-
checkCookieSet
protected boolean checkCookieSet(com.sun.jersey.api.client.ClientResponse response)
-
checkXsrfTokenHeaderPresent
protected boolean checkXsrfTokenHeaderPresent(com.sun.jersey.api.client.ClientResponse response)
-
shouldRejectModifyingRequest
public void shouldRejectModifyingRequest()
-
-