public class BaseHttpSSLSocketFactory extends SSLSocketFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseHttpSSLSocketFactory.MyX509TrustManager |
static class |
BaseHttpSSLSocketFactory.TrustAnyHostnameVerifier
解决由于服务器证书问题导致HTTPS无法访问的情况 PS:HTTPS hostname wrong: should be
|
| Constructor and Description |
|---|
BaseHttpSSLSocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(InetAddress arg0,
int arg1) |
Socket |
createSocket(InetAddress arg0,
int arg1,
InetAddress arg2,
int arg3) |
Socket |
createSocket(Socket arg0,
String arg1,
int arg2,
boolean arg3) |
Socket |
createSocket(String arg0,
int arg1) |
Socket |
createSocket(String arg0,
int arg1,
InetAddress arg2,
int arg3) |
String[] |
getDefaultCipherSuites() |
String[] |
getSupportedCipherSuites() |
createSocket, getDefaultcreateSocketpublic Socket createSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(InetAddress arg0, int arg1) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String arg0, int arg1) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLSocketFactorypublic String[] getDefaultCipherSuites()
getDefaultCipherSuites in class SSLSocketFactorypublic Socket createSocket(Socket arg0, String arg1, int arg2, boolean arg3) throws IOException
createSocket in class SSLSocketFactoryIOExceptionCopyright © 2018. All rights reserved.