Package com.github.underscore
Class U.BaseHttpSslSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- javax.net.ssl.SSLSocketFactory
-
- com.github.underscore.U.BaseHttpSslSocketFactory
-
public static class U.BaseHttpSslSocketFactory extends SSLSocketFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classU.BaseHttpSslSocketFactory.MyX509TrustManager
-
Constructor Summary
Constructors Constructor Description BaseHttpSslSocketFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private SSLContextcreateEasySslContext()SocketcreateSocket(String arg0, int arg1)SocketcreateSocket(String arg0, int arg1, InetAddress arg2, int arg3)SocketcreateSocket(InetAddress arg0, int arg1)SocketcreateSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3)SocketcreateSocket(Socket arg0, String arg1, int arg2, boolean arg3)String[]getDefaultCipherSuites()private SSLContextgetSslContext()String[]getSupportedCipherSuites()-
Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefault
-
Methods inherited from class javax.net.SocketFactory
createSocket
-
-
-
-
Method Detail
-
getSslContext
private SSLContext getSslContext()
-
createSocket
public Socket createSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress arg0, int arg1) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String arg0, int arg1) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory
-
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuitesin classSSLSocketFactory
-
createSocket
public Socket createSocket(Socket arg0, String arg1, int arg2, boolean arg3) throws IOException
- Specified by:
createSocketin classSSLSocketFactory- Throws:
IOException
-
createEasySslContext
private SSLContext createEasySslContext()
-
-