public class QualysAPISecClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected QualysAuth |
auth |
protected PrintStream |
stream |
protected int |
timeout |
| Constructor and Description |
|---|
QualysAPISecClient(QualysAuth auth) |
QualysAPISecClient(QualysAuth auth,
PrintStream stream) |
| Modifier and Type | Method and Description |
|---|---|
QualysAPISecResponse |
assessAPI(File file,
String apiId) |
URL |
getAbsoluteUrl(String path) |
com.google.gson.JsonArray |
getAppList() |
protected String |
getBasicAuthHeader() |
protected org.apache.http.impl.client.CloseableHttpClient |
getHttpClient() |
protected byte[] |
getJWTAuthHeader() |
void |
setTimeout(int timeout)
This method use to set connection timeout for http client.
|
QualysAPISecTestConnectionResponse |
testConnection() |
protected QualysAuth auth
protected PrintStream stream
protected int timeout
public QualysAPISecClient(QualysAuth auth)
public QualysAPISecClient(QualysAuth auth, PrintStream stream)
public com.google.gson.JsonArray getAppList()
public QualysAPISecResponse assessAPI(File file, String apiId)
public QualysAPISecTestConnectionResponse testConnection() throws Exception
Exceptionpublic URL getAbsoluteUrl(String path) throws MalformedURLException
MalformedURLExceptionprotected byte[] getJWTAuthHeader()
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–2021 Qualys Inc.. All rights reserved.