Class QualysCSClient
- java.lang.Object
-
- com.qualys.plugins.wasPlugin.QualysClient.QualysCSClient
-
public class QualysCSClient extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintStream
stream
protected int
timeout
-
Constructor Summary
Constructors Constructor Description QualysCSClient(QualysAuth auth)
QualysCSClient(QualysAuth auth, PrintStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
getAbsoluteUrl(String path)
protected String
getBasicAuthHeader()
protected org.apache.http.impl.client.CloseableHttpClient
getHttpClient()
String
getKbData(String params)
QualysCSResponse
getScanDetails(String scanId)
QualysCSResponse
getScanResult(String scanId)
QualysCSResponse
getScanStatus(String scanId)
QualysCSResponse
getWebAppCount()
QualysCSResponse
getWebAppDetails(String webappId)
QualysCSResponse
launchWASScan(com.google.gson.JsonObject requestData)
QualysCSResponse
listAuthRecords(String xml)
QualysCSResponse
listOptionProfiles(String xml)
QualysCSResponse
listWebApps(String xml)
void
setTimeout(int timeout)
This method use to set connection timeout for http client.void
testConnection()
-
-
-
Field Detail
-
stream
protected PrintStream stream
-
timeout
protected int timeout
-
-
Constructor Detail
-
QualysCSClient
public QualysCSClient(QualysAuth auth)
-
QualysCSClient
public QualysCSClient(QualysAuth auth, PrintStream stream)
-
-
Method Detail
-
getScanResult
public QualysCSResponse getScanResult(String scanId)
-
getScanDetails
public QualysCSResponse getScanDetails(String scanId)
-
getWebAppCount
public QualysCSResponse getWebAppCount()
-
getScanStatus
public QualysCSResponse getScanStatus(String scanId)
-
launchWASScan
public QualysCSResponse launchWASScan(com.google.gson.JsonObject requestData)
-
getWebAppDetails
public QualysCSResponse getWebAppDetails(String webappId)
-
listWebApps
public QualysCSResponse listWebApps(String xml)
-
listOptionProfiles
public QualysCSResponse listOptionProfiles(String xml)
-
listAuthRecords
public QualysCSResponse listAuthRecords(String xml)
-
getAbsoluteUrl
public URL getAbsoluteUrl(String path) throws MalformedURLException
- Throws:
MalformedURLException
-
getBasicAuthHeader
protected String getBasicAuthHeader()
-
getHttpClient
protected org.apache.http.impl.client.CloseableHttpClient getHttpClient() throws KeyManagementException, NoSuchAlgorithmException, KeyStoreException
-
setTimeout
public void setTimeout(int timeout)
This method use to set connection timeout for http client.- Parameters:
timeout
- - int - in secs
-
-