public class Acsrf extends AcsrfDeprecated
| Modifier and Type | Method and Description |
|---|---|
ApiResponse |
addOptionToken(java.lang.String string)
Adds an anti-CSRF token with the given name, enabled by default
|
byte[] |
genForm(java.lang.String hrefid)
Generate a form for testing lack of anti-CSRF tokens - typically invoked via ZAP
|
ApiResponse |
optionTokensNames()
Lists the names of all anti-CSRF tokens
|
ApiResponse |
removeOptionToken(java.lang.String string)
Removes the anti-CSRF token with the given name
|
addOptionToken, genForm, removeOptionTokenpublic Acsrf(ClientApi api)
public ApiResponse optionTokensNames() throws ClientApiException
ClientApiExceptionpublic ApiResponse addOptionToken(java.lang.String string) throws ClientApiException
ClientApiExceptionpublic ApiResponse removeOptionToken(java.lang.String string) throws ClientApiException
ClientApiExceptionpublic byte[] genForm(java.lang.String hrefid)
throws ClientApiException
ClientApiException