public class HC4TrustAllSSLSocketFactory
extends org.apache.http.conn.ssl.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(org.apache.http.params.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(org.apache.http.params.HttpParams params) throws IOException
createSocket
in interface org.apache.http.conn.scheme.SchemeSocketFactory
createSocket
in class org.apache.http.conn.ssl.SSLSocketFactory
IOException
public Socket createSocket() throws IOException
createSocket
in interface org.apache.http.conn.scheme.SocketFactory
createSocket
in class org.apache.http.conn.ssl.SSLSocketFactory
IOException
public Socket createLayeredSocket(Socket socket, String host, int port, boolean autoClose) throws IOException, UnknownHostException
createLayeredSocket
in interface org.apache.http.conn.scheme.LayeredSchemeSocketFactory
createLayeredSocket
in class org.apache.http.conn.ssl.SSLSocketFactory
IOException
UnknownHostException
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.