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 class
U.BaseHttpSslSocketFactory.MyX509TrustManager
-
Constructor Summary
Constructors Constructor Description BaseHttpSslSocketFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private SSLContext
createEasySslContext()
Socket
createSocket(String arg0, int arg1)
Socket
createSocket(String arg0, int arg1, InetAddress arg2, int arg3)
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)
String[]
getDefaultCipherSuites()
private SSLContext
getSslContext()
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:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress arg0, int arg1) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String arg0, int arg1) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classSSLSocketFactory
-
getDefaultCipherSuites
public String[] getDefaultCipherSuites()
- Specified by:
getDefaultCipherSuites
in classSSLSocketFactory
-
createSocket
public Socket createSocket(Socket arg0, String arg1, int arg2, boolean arg3) throws IOException
- Specified by:
createSocket
in classSSLSocketFactory
- Throws:
IOException
-
createEasySslContext
private SSLContext createEasySslContext()
-
-