Package org.zaproxy.clientapi.gen
Class Acsrf
- java.lang.Object
-
- org.zaproxy.clientapi.gen.deprecated.AcsrfDeprecated
-
- org.zaproxy.clientapi.gen.Acsrf
-
public class Acsrf extends AcsrfDeprecated
This file was automatically generated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiResponseaddOptionToken(java.lang.String string)Adds an anti-CSRF token with the given name, enabled by defaultbyte[]genForm(java.lang.String hrefid)Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAPApiResponseoptionPartialMatchingEnabled()Define if ZAP should detect CSRF tokens by searching for partial matchesApiResponseoptionTokensNames()Lists the names of all anti-CSRF tokensApiResponseremoveOptionToken(java.lang.String string)Removes the anti-CSRF token with the given nameApiResponsesetOptionPartialMatchingEnabled(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 Detail
-
Acsrf
public Acsrf(ClientApi api)
-
-
Method Detail
-
optionTokensNames
public ApiResponse optionTokensNames() throws ClientApiException
Lists the names of all anti-CSRF tokens- Throws:
ClientApiException
-
optionPartialMatchingEnabled
public ApiResponse optionPartialMatchingEnabled() throws ClientApiException
Define if ZAP should detect CSRF tokens by searching for partial matches- Throws:
ClientApiException
-
addOptionToken
public ApiResponse addOptionToken(java.lang.String string) throws ClientApiException
Adds an anti-CSRF token with the given name, enabled by default- Throws:
ClientApiException
-
removeOptionToken
public ApiResponse removeOptionToken(java.lang.String string) throws ClientApiException
Removes the anti-CSRF token with the given name- Throws:
ClientApiException
-
setOptionPartialMatchingEnabled
public ApiResponse setOptionPartialMatchingEnabled(boolean bool) throws ClientApiException
Define if ZAP should detect CSRF tokens by searching for partial matches.- Throws:
ClientApiException
-
genForm
public byte[] genForm(java.lang.String hrefid) throws ClientApiExceptionGenerate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP- Throws:
ClientApiException
-
-