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
Exception
public QualysVMResponse launchVmScan(String requestData) throws Exception
Exception
public QualysVMResponse cancelVmScan(String scanRef) throws Exception
Exception
public QualysVMResponse vMScansList(String statusId) throws Exception
Exception
public QualysVMResponse getScanResult(String scanId) throws Exception
Exception
public QualysVMResponse aboutDotPhp() throws Exception
Exception
public void testConnectionUsingGatewayAPI() throws Exception
Exception
public com.google.gson.JsonObject runConnector(String connId) throws Exception
Exception
public com.google.gson.JsonObject getConnectorStatus(String connId2) throws Exception
Exception
public com.google.gson.JsonObject getInstanceState(String ec2Id, String accountId) throws Exception
Exception
public String getTextValueOfXml(Document doc, String topNode, String topPath, String innerNode, String innerPath, String message) throws Exception
Exception
public URL getAbsoluteUrl(String path) throws MalformedURLException
MalformedURLException
public URL getAbsoluteUrlForTestConnection(String path) throws MalformedURLException
MalformedURLException
protected byte[] getJWTAuthHeader() throws UnsupportedEncodingException
UnsupportedEncodingException
protected 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.