Class QualysCSClient
java.lang.Object
com.qualys.plugins.containerSecurity.common.QualysClient.QualysCSClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQualysCSClient(QualysAuth auth) QualysCSClient(QualysAuth auth, PrintStream stream) -
Method Summary
Modifier and TypeMethodDescriptiongetAbsoluteUrl(String path) protected StringgetAuthEndpoint(Map<String, String> apiMap) protected byte[]protected byte[]protected org.apache.http.impl.client.CloseableHttpClientgetImageDetails(String imageSha) voidsetTimeout(int timeout) This method use to set connection timeout for http client.
-
Field Details
-
stream
-
timeout
protected int timeout
-
-
Constructor Details
-
QualysCSClient
-
QualysCSClient
-
-
Method Details
-
getImageDetails
-
getImages
public QualysCSResponse getImages(String imageSha, long nowMinusSeconds) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
testConnection
-
getAbsoluteUrl
- Throws:
MalformedURLException
-
getAuthHeaders
- Throws:
UnsupportedEncodingException
-
getAuthEndpoint
-
getAuthEntity
- Throws:
UnsupportedEncodingException
-
getBasicAuthJWTEncodedEntity
- Throws:
UnsupportedEncodingException
-
getHttpClient
protected org.apache.http.impl.client.CloseableHttpClient getHttpClient() -
setTimeout
public void setTimeout(int timeout) This method use to set connection timeout for http client.- Parameters:
timeout- - int - in secs
-