Package com.rapid7.appspider
Class HttpClientFactory
- java.lang.Object
-
- com.rapid7.appspider.HttpClientFactory
-
public class HttpClientFactory extends Object
HttpClients configured to use TLS 1.2
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpClientFactory
createInstanceOrThrow(boolean allowSelfSignedCertificates)
org.apache.http.impl.client.CloseableHttpClient
getClient()
gets a closeble HttpClient configured for TLS 1.2
-
-
-
Method Detail
-
createInstanceOrThrow
public static HttpClientFactory createInstanceOrThrow(boolean allowSelfSignedCertificates) throws SslContextCreationException
- Throws:
SslContextCreationException
-
getClient
public org.apache.http.impl.client.CloseableHttpClient getClient()
gets a closeble HttpClient configured for TLS 1.2- Returns:
- closeble HttpClient configured for TLS 1.2
-
-