public class HC4TrustAllSSLSocketFactory
extends SSLSocketFactory
Modifier | Constructor and Description |
---|---|
|
HC4TrustAllSSLSocketFactory()
Create an SSL factory which trusts all certificates and hosts.
|
protected |
HC4TrustAllSSLSocketFactory(SSLSocketFactory factory)
Create an SSL factory which trusts all certificates and hosts.
|
Modifier and Type | Method and Description |
---|---|
Socket |
createLayeredSocket(Socket socket,
String host,
int port,
boolean autoClose) |
Socket |
createSocket() |
Socket |
createSocket(HttpParams params) |
public HC4TrustAllSSLSocketFactory() throws GeneralSecurityException
SSLSocketFactory#SSLSocketFactory(TrustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier)
GeneralSecurityException
- if there's a problem setting up the securityprotected HC4TrustAllSSLSocketFactory(SSLSocketFactory factory) throws GeneralSecurityException
SSLSocketFactory#SSLSocketFactory(TrustStrategy, org.apache.http.conn.ssl.X509HostnameVerifier)
factory
- javax.net.ssl.SSLSocketFactoryGeneralSecurityException
- if there's a problem setting up the securitypublic Socket createSocket(HttpParams params) throws IOException
IOException
public Socket createSocket() throws IOException
IOException
public Socket createLayeredSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException
IOException
UnknownHostException
Copyright © 1998-2015 Apache Software Foundation. All Rights Reserved.