public class QualysVMClient extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected PrintStream | stream | 
| protected int | timeout | 
| Constructor and Description | 
|---|
| QualysVMClient(QualysAuth auth) | 
| QualysVMClient(QualysAuth auth,
              PrintStream stream) | 
| QualysVMClient(QualysAuth auth,
              PrintStream stream,
              int pollingInterval,
              int vulTimeout,
              TaskListener listener) | 
| Modifier and Type | Method and Description | 
|---|---|
| QualysVMResponse | aboutDotPhp() | 
| QualysVMResponse | cancelVmScan(String scanRef) | 
| URL | getAbsoluteUrl(String path) | 
| URL | getAbsoluteUrlForTestConnection(String path) | 
| protected String | getBasicAuthHeader() | 
| com.google.gson.JsonObject | getConnector() | 
| com.google.gson.JsonObject | getConnectorStatus(String connId2) | 
| protected org.apache.http.impl.client.CloseableHttpClient | getHttpClient() | 
| com.google.gson.JsonObject | getInstanceState(String ec2Id,
                String accountId) | 
| protected byte[] | getJWTAuthHeader() | 
| com.google.gson.JsonArray | getNetworkList() | 
| QualysVMResponse | getScanResult(String scanId) | 
| String | getTextValueOfXml(Document doc,
                 String topNode,
                 String topPath,
                 String innerNode,
                 String innerPath,
                 String message) | 
| QualysVMResponse | launchVmScan(String requestData) | 
| Set<String> | optionProfiles() | 
| com.google.gson.JsonObject | runConnector(String connId) | 
| com.google.gson.JsonObject | scannerName(boolean useHost,
           String networkId) | 
| void | setTimeout(int timeout)This method use to set connection timeout for http client. | 
| void | testConnection() | 
| void | testConnectionUsingGatewayAPI() | 
| QualysVMResponse | vMScansList(String statusId) | 
protected PrintStream stream
protected int timeout
public QualysVMClient(QualysAuth auth)
public QualysVMClient(QualysAuth auth, PrintStream stream)
public QualysVMClient(QualysAuth auth, PrintStream stream, int pollingInterval, int vulTimeout, TaskListener listener)
public com.google.gson.JsonObject scannerName(boolean useHost,
                                              String networkId)
                                       throws Exception
Exceptionpublic QualysVMResponse launchVmScan(String requestData) throws Exception
Exceptionpublic QualysVMResponse cancelVmScan(String scanRef) throws Exception
Exceptionpublic QualysVMResponse vMScansList(String statusId) throws Exception
Exceptionpublic QualysVMResponse getScanResult(String scanId) throws Exception
Exceptionpublic QualysVMResponse aboutDotPhp() throws Exception
Exceptionpublic void testConnectionUsingGatewayAPI()
                                   throws Exception
Exceptionpublic com.google.gson.JsonObject runConnector(String connId) throws Exception
Exceptionpublic com.google.gson.JsonObject getConnectorStatus(String connId2) throws Exception
Exceptionpublic com.google.gson.JsonObject getInstanceState(String ec2Id, String accountId) throws Exception
Exceptionpublic String getTextValueOfXml(Document doc, String topNode, String topPath, String innerNode, String innerPath, String message) throws Exception
Exceptionpublic URL getAbsoluteUrl(String path) throws MalformedURLException
MalformedURLExceptionpublic URL getAbsoluteUrlForTestConnection(String path) throws MalformedURLException
MalformedURLExceptionprotected byte[] getJWTAuthHeader()
                           throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected String getBasicAuthHeader()
protected org.apache.http.impl.client.CloseableHttpClient getHttpClient()
                                                                 throws KeyManagementException,
                                                                        NoSuchAlgorithmException,
                                                                        KeyStoreException
public void setTimeout(int timeout)
timeout - - int - in secsCopyright © 2016–2022 Qualys Inc.. All rights reserved.