Package org.zaproxy.clientapi.gen
Class Users
java.lang.Object
org.zaproxy.clientapi.gen.deprecated.UsersDeprecated
org.zaproxy.clientapi.gen.Users
This file was automatically generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticateAsUser
(String contextid, String userid) Tries to authenticate as the identified user, returning the authentication request and whether it appears to have succeeded.getAuthenticationCredentials
(String contextid, String userid) Gets the authentication credentials of the user with given ID that belongs to the context with the given ID.getAuthenticationCredentialsConfigParams
(String contextid) Gets the configuration parameters for the credentials of the context with the given ID.getAuthenticationSession
(String contextid, String userid) Gets the authentication session information for the user identified by the Context and User Ids, e.g.getAuthenticationState
(String contextid, String userid) Gets the authentication state information for the user identified by the Context and User Ids.getUserById
(String contextid, String userid) Gets the data of the user with the given ID that belongs to the context with the given ID.Creates a new user with the given name for the context with the given ID.pollAsUser
(String contextid, String userid) Tries to poll as the identified user, returning the authentication request and whether it appears to have succeeded.removeUser
(String contextid, String userid) Removes the user with the given ID that belongs to the context with the given ID.setAuthenticationCredentials
(String contextid, String userid, String authcredentialsconfigparams) Sets the authentication credentials for the user with the given ID that belongs to the context with the given ID.setAuthenticationState
(String contextid, String userid, String lastpollresult, String lastpolltimeinms, String requestssincelastpoll) Sets fields in the authentication state for the user identified by the Context and User Ids.setCookie
(String contextid, String userid, String domain, String name, String value, String path, String secure) Sets the specified cookie for the user identified by the Context and User Ids.setUserEnabled
(String contextid, String userid, String enabled) Sets whether or not the user, with the given ID that belongs to the context with the given ID, should be enabled.setUserName
(String contextid, String userid, String name) Renames the user with the given ID that belongs to the context with the given ID.Gets a list of users that belong to the context with the given ID, or all users if none provided.Methods inherited from class org.zaproxy.clientapi.gen.deprecated.UsersDeprecated
newUser, removeUser, setAuthenticationCredentials, setUserEnabled, setUserName
-
Constructor Details
-
Users
-
-
Method Details
-
usersList
Gets a list of users that belong to the context with the given ID, or all users if none provided.- Throws:
ClientApiException
-
getUserById
Gets the data of the user with the given ID that belongs to the context with the given ID.- Throws:
ClientApiException
-
getAuthenticationCredentialsConfigParams
public ApiResponse getAuthenticationCredentialsConfigParams(String contextid) throws ClientApiException Gets the configuration parameters for the credentials of the context with the given ID.- Throws:
ClientApiException
-
getAuthenticationCredentials
public ApiResponse getAuthenticationCredentials(String contextid, String userid) throws ClientApiException Gets the authentication credentials of the user with given ID that belongs to the context with the given ID.- Throws:
ClientApiException
-
getAuthenticationState
public ApiResponse getAuthenticationState(String contextid, String userid) throws ClientApiException Gets the authentication state information for the user identified by the Context and User Ids.- Throws:
ClientApiException
-
getAuthenticationSession
public ApiResponse getAuthenticationSession(String contextid, String userid) throws ClientApiException Gets the authentication session information for the user identified by the Context and User Ids, e.g. cookies and realm credentials.- Throws:
ClientApiException
-
newUser
Creates a new user with the given name for the context with the given ID.- Throws:
ClientApiException
-
removeUser
Removes the user with the given ID that belongs to the context with the given ID.- Throws:
ClientApiException
-
setUserEnabled
public ApiResponse setUserEnabled(String contextid, String userid, String enabled) throws ClientApiException Sets whether or not the user, with the given ID that belongs to the context with the given ID, should be enabled.- Throws:
ClientApiException
-
setUserName
public ApiResponse setUserName(String contextid, String userid, String name) throws ClientApiException Renames the user with the given ID that belongs to the context with the given ID.- Throws:
ClientApiException
-
setAuthenticationCredentials
public ApiResponse setAuthenticationCredentials(String contextid, String userid, String authcredentialsconfigparams) throws ClientApiException Sets the authentication credentials for the user with the given ID that belongs to the context with the given ID.- Throws:
ClientApiException
-
authenticateAsUser
Tries to authenticate as the identified user, returning the authentication request and whether it appears to have succeeded.- Throws:
ClientApiException
-
pollAsUser
Tries to poll as the identified user, returning the authentication request and whether it appears to have succeeded. This will only work if the polling verification strategy has been configured.- Throws:
ClientApiException
-
setAuthenticationState
public ApiResponse setAuthenticationState(String contextid, String userid, String lastpollresult, String lastpolltimeinms, String requestssincelastpoll) throws ClientApiException Sets fields in the authentication state for the user identified by the Context and User Ids.- Throws:
ClientApiException
-
setCookie
public ApiResponse setCookie(String contextid, String userid, String domain, String name, String value, String path, String secure) throws ClientApiException Sets the specified cookie for the user identified by the Context and User Ids.- Throws:
ClientApiException
-