public class BaseHttpSSLSocketFactory extends SSLSocketFactory
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BaseHttpSSLSocketFactory.MyX509TrustManager |
static class |
BaseHttpSSLSocketFactory.TrustAnyHostnameVerifier
解决由于服务器证书问题导致HTTPS无法访问的情况 PS:HTTPS hostname wrong: should be
|
| 构造器和说明 |
|---|
BaseHttpSSLSocketFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 SocketFactoryIOExceptionpublic Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException, UnknownHostException
createSocket 在类中 SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(InetAddress arg0, int arg1) throws IOException
createSocket 在类中 SocketFactoryIOExceptionpublic Socket createSocket(String arg0, int arg1) throws IOException, UnknownHostException
createSocket 在类中 SocketFactoryIOExceptionUnknownHostExceptionpublic String[] getSupportedCipherSuites()
getSupportedCipherSuites 在类中 SSLSocketFactorypublic String[] getDefaultCipherSuites()
getDefaultCipherSuites 在类中 SSLSocketFactorypublic Socket createSocket(Socket arg0, String arg1, int arg2, boolean arg3) throws IOException
createSocket 在类中 SSLSocketFactoryIOExceptionCopyright © 2019. All rights reserved.