Package org.zaproxy.clientapi.gen
Class Authorization
java.lang.Object
org.zaproxy.clientapi.gen.deprecated.AuthorizationDeprecated
org.zaproxy.clientapi.gen.Authorization
This file was automatically generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuthorizationDetectionMethod
(String contextid) Obtains all the configuration of the authorization detection method that is currently set for a context.setBasicAuthorizationDetectionMethod
(String contextid, String headerregex, String bodyregex, String statuscode, String logicaloperator) Sets the authorization detection method for a context as one that identifies un-authorized messages based on: the message's status code or a regex pattern in the response's header or body.Methods inherited from class org.zaproxy.clientapi.gen.deprecated.AuthorizationDeprecated
setBasicAuthorizationDetectionMethod
-
Constructor Details
-
Authorization
-
-
Method Details
-
getAuthorizationDetectionMethod
Obtains all the configuration of the authorization detection method that is currently set for a context.- Throws:
ClientApiException
-
setBasicAuthorizationDetectionMethod
public ApiResponse setBasicAuthorizationDetectionMethod(String contextid, String headerregex, String bodyregex, String statuscode, String logicaloperator) throws ClientApiException Sets the authorization detection method for a context as one that identifies un-authorized messages based on: the message's status code or a regex pattern in the response's header or body. Also, whether all conditions must match or just some can be specified via the logicalOperator parameter, which accepts two values: "AND" (default), "OR".- Throws:
ClientApiException
-