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 |
optionPartialMatchingEnabled()
Define if ZAP should detect CSRF tokens by searching for partial matches
|
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
|
ApiResponse |
setOptionPartialMatchingEnabled(boolean bool)
Define if ZAP should detect CSRF tokens by searching for partial matches.
|
addOptionToken, genForm, removeOptionToken
public Acsrf(ClientApi api)
public ApiResponse optionTokensNames() throws ClientApiException
ClientApiException
public ApiResponse optionPartialMatchingEnabled() throws ClientApiException
ClientApiException
public ApiResponse addOptionToken(java.lang.String string) throws ClientApiException
ClientApiException
public ApiResponse removeOptionToken(java.lang.String string) throws ClientApiException
ClientApiException
public ApiResponse setOptionPartialMatchingEnabled(boolean bool) throws ClientApiException
ClientApiException
public byte[] genForm(java.lang.String hrefid) throws ClientApiException
ClientApiException