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) |
| Modifier and Type | Method and Description |
|---|---|
QualysVMResponse |
aboutDotPhp() |
QualysVMResponse |
cancelVmScan(String scanRef) |
URL |
getAbsoluteUrl(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) |
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) |
void |
setTimeout(int timeout)
This method use to set connection timeout for http client.
|
void |
testConnection() |
QualysVMResponse |
vMScansList(String statusId) |
protected PrintStream stream
protected int timeout
public QualysVMClient(QualysAuth auth)
public QualysVMClient(QualysAuth auth, PrintStream stream)
public QualysVMResponse aboutDotPhp() throws Exception
Exceptionpublic com.google.gson.JsonObject scannerName(boolean useHost)
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 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
MalformedURLExceptionprotected String getBasicAuthHeader()
protected org.apache.http.impl.client.CloseableHttpClient getHttpClient()
throws KeyManagementException,
NoSuchAlgorithmException,
KeyStoreException
public void setTimeout(int timeout)
timeout - - int - in secsCopyright © 2016–2020 Qualys Inc.. All rights reserved.