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, removeOptionToken
public Acsrf(ClientApi api)
public ApiResponse optionTokensNames() throws ClientApiException
ClientApiException
public ApiResponse addOptionToken(java.lang.String string) throws ClientApiException
ClientApiException
public ApiResponse removeOptionToken(java.lang.String string) throws ClientApiException
ClientApiException
public byte[] genForm(java.lang.String hrefid) throws ClientApiException
ClientApiException