public final class HttpClientSupport extends Object
HttpClient and related components.| Modifier | Constructor and Description |
|---|---|
private |
HttpClientSupport()
Constructor to prevent instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
static SSLConnectionSocketFactory |
buildNoTrustSSLConnectionSocketFactory()
Build an instance of
SSLConnectionSocketFactory which accepts all peer certificates
and performs no hostname verification. |
static X509TrustManager |
buildNoTrustX509TrustManager()
Build an instance of
X509TrustManager which trusts all certificates. |
static SSLConnectionSocketFactory |
buildStrictSSLConnectionSocketFactory()
Build an instance of
SSLConnectionSocketFactory which uses
the standard HttpClient default SSLContext and which uses
a strict hostname verifier SSLConnectionSocketFactory.STRICT_HOSTNAME_VERIFIER. |
private HttpClientSupport()
public static SSLConnectionSocketFactory buildStrictSSLConnectionSocketFactory()
SSLConnectionSocketFactory which uses
the standard HttpClient default SSLContext and which uses
a strict hostname verifier SSLConnectionSocketFactory.STRICT_HOSTNAME_VERIFIER.public static SSLConnectionSocketFactory buildNoTrustSSLConnectionSocketFactory()
SSLConnectionSocketFactory which accepts all peer certificates
and performs no hostname verification.public static X509TrustManager buildNoTrustX509TrustManager()
X509TrustManager which trusts all certificates.Copyright © 1999–2014. All rights reserved.