public class DefaultXsrfInvocationChecker extends Object implements XsrfInvocationChecker
REQUIRE_SECURITY_TOKEN, X_ATLASSIAN_TOKEN
Constructor and Description |
---|
DefaultXsrfInvocationChecker(ComponentLocator componentLocator) |
Modifier and Type | Method and Description |
---|---|
XsrfCheckResult |
checkActionInvocation(webwork.action.Action action,
Map<String,?> parameters)
Checks that the action about to be executed has been invoked within the correct XSRF parameters.
|
XsrfCheckResult |
checkWebRequestInvocation(javax.servlet.http.HttpServletRequest httpServletRequest)
Checks that the web request contains the correct XSRF parameters.
|
public DefaultXsrfInvocationChecker(ComponentLocator componentLocator)
public XsrfCheckResult checkActionInvocation(webwork.action.Action action, Map<String,?> parameters)
RequiresXsrfCheck
.checkActionInvocation
in interface XsrfInvocationChecker
action
- the ActionSupport
in play. Cannot be null.parameters
- the parameters this has been called with. Cannot be null.public XsrfCheckResult checkWebRequestInvocation(javax.servlet.http.HttpServletRequest httpServletRequest)
checkWebRequestInvocation
in interface XsrfInvocationChecker
httpServletRequest
- the HttpServletRequest
in play. Can't be null.Copyright © 2002-2022 Atlassian. All Rights Reserved.