Package org.zaproxy.clientapi.gen
Class Acsrf
java.lang.Object
org.zaproxy.clientapi.gen.deprecated.AcsrfDeprecated
org.zaproxy.clientapi.gen.Acsrf
This file was automatically generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOptionToken
(String string) Adds an anti-CSRF token with the given name, enabled by defaultbyte[]
Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAPbyte[]
genFormActionUrl
(String hrefid, String actionurl) Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAPDefine if ZAP should detect CSRF tokens by searching for partial matchesLists the names of all anti-CSRF tokensremoveOptionToken
(String string) Removes the anti-CSRF token with the given namesetOptionPartialMatchingEnabled
(boolean bool) Define if ZAP should detect CSRF tokens by searching for partial matches.Methods inherited from class org.zaproxy.clientapi.gen.deprecated.AcsrfDeprecated
addOptionToken, genForm, genFormWithUrl, removeOptionToken
-
Constructor Details
-
Acsrf
-
-
Method Details
-
optionTokensNames
Lists the names of all anti-CSRF tokens- Throws:
ClientApiException
-
optionPartialMatchingEnabled
Define if ZAP should detect CSRF tokens by searching for partial matches- Throws:
ClientApiException
-
addOptionToken
Adds an anti-CSRF token with the given name, enabled by default- Throws:
ClientApiException
-
removeOptionToken
Removes the anti-CSRF token with the given name- Throws:
ClientApiException
-
setOptionPartialMatchingEnabled
Define if ZAP should detect CSRF tokens by searching for partial matches.- Throws:
ClientApiException
-
genForm
Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP- Throws:
ClientApiException
-
genFormActionUrl
Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP- Throws:
ClientApiException
-