public class QualysAPISecClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected PrintStream |
stream |
protected int |
timeout |
| Constructor and Description |
|---|
QualysAPISecClient(QualysAuth auth) |
QualysAPISecClient(QualysAuth auth,
PrintStream stream) |
| Modifier and Type | Method and Description |
|---|---|
QualysAPISecResponse |
createApp(com.google.gson.JsonObject requestDataJson) |
URL |
getAbsoluteUrl(String path) |
com.google.gson.JsonArray |
getAppList() |
protected String |
getBasicAuthHeader() |
protected org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
void |
setTimeout(int timeout)
This method use to set connection timeout for http client.
|
QualysAPISecTestConnectionResponse |
testConnection() |
QualysAPISecResponse |
updateCicd(File file,
String appId) |
protected PrintStream stream
protected int timeout
public QualysAPISecClient(QualysAuth auth)
public QualysAPISecClient(QualysAuth auth, PrintStream stream)
public com.google.gson.JsonArray getAppList()
public QualysAPISecResponse createApp(com.google.gson.JsonObject requestDataJson)
public QualysAPISecResponse updateCicd(File file, String appId)
public QualysAPISecTestConnectionResponse testConnection() 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–2019. All rights reserved.