public class QualysPCClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected PrintStream |
stream |
protected int |
timeout |
| Constructor and Description |
|---|
QualysPCClient(QualysAuth auth) |
QualysPCClient(QualysAuth auth,
PrintStream stream) |
QualysPCClient(QualysAuth auth,
PrintStream stream,
int pollingInterval,
int vulTimeout,
TaskListener listener) |
protected PrintStream stream
protected int timeout
public QualysPCClient(QualysAuth auth)
public QualysPCClient(QualysAuth auth, PrintStream stream)
public QualysPCClient(QualysAuth auth, PrintStream stream, int pollingInterval, int vulTimeout, TaskListener listener)
public com.google.gson.JsonObject scannerName(boolean useHost)
throws Exception
Exceptionpublic QualysPCResponse optionProfiles() throws Exception
Exceptionpublic QualysPCResponse updatePolicies(String apiParams) throws Exception
Exceptionpublic QualysPCResponse updateAssetGroup(String assetGroupId, String ipAddress) throws Exception
Exceptionpublic QualysPCResponse listAssetGroup(String apiParams) throws Exception
Exceptionpublic QualysPCResponse createAssetGroup(String job_name, String ipAddress) throws Exception
Exceptionpublic QualysPCResponse updateWindowsAuthRecord(String apiParams, String recordId) throws Exception
Exceptionpublic QualysPCResponse updateUnixAuthRecord(String apiParams, String recordId) throws Exception
Exceptionpublic QualysPCResponse createUnixAuthRecord(String apiParams, String job_name) throws Exception
Exceptionpublic QualysPCResponse createWindowsAuthRecord(String apiParams, String job_name) throws Exception
Exceptionpublic QualysPCResponse listUnixAuthRecord(String title) throws Exception
Exceptionpublic QualysPCResponse listWindowsAuthRecord(String title) throws Exception
Exceptionpublic QualysPCResponse addHost(String ip) throws Exception
Exceptionpublic QualysPCResponse launchPcScan(String requestData) throws Exception
Exceptionpublic QualysPCResponse cancelPcScan(String scanRef) throws Exception
Exceptionpublic QualysPCResponse pCScansList(String statusId) throws Exception
Exceptionpublic QualysPCResponse getReportResult(String apiParams) throws Exception
Exceptionpublic QualysPCResponse getPCScanResult(String scanRef) throws Exception
Exceptionpublic QualysPCResponse 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 Set<String> optionProfilesSet(Document resp, int respCode, String apiTypeName) 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–2020 Qualys Inc.. All rights reserved.