Package com.cheetahdigital.corekit.rest
Class TLSSocketFactory
- java.lang.Object
 - 
- javax.net.SocketFactory
 - 
- javax.net.ssl.SSLSocketFactory
 - 
- com.cheetahdigital.corekit.rest.TLSSocketFactory
 
 
 
 
- 
public class TLSSocketFactory extends javax.net.ssl.SSLSocketFactoryCustomSSLSocketFactoryclass to enable TLS v1.1 and v1.2 for API 16 - 19 
- 
- 
Constructor Summary
Constructors Constructor Description TLSSocketFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.SocketcreateSocket()java.net.SocketcreateSocket(java.lang.String host, int port)java.net.SocketcreateSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort)java.net.SocketcreateSocket(java.net.InetAddress host, int port)java.net.SocketcreateSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort)java.net.SocketcreateSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose)java.lang.String[]getDefaultCipherSuites()java.lang.String[]getSupportedCipherSuites()javax.net.ssl.X509TrustManagergetTrustManager() 
 - 
 
- 
- 
Method Detail
- 
getTrustManager
public javax.net.ssl.X509TrustManager getTrustManager()
 
- 
getDefaultCipherSuites
public java.lang.String[] getDefaultCipherSuites()
- Specified by:
 getDefaultCipherSuitesin classjavax.net.ssl.SSLSocketFactory
 
- 
getSupportedCipherSuites
public java.lang.String[] getSupportedCipherSuites()
- Specified by:
 getSupportedCipherSuitesin classjavax.net.ssl.SSLSocketFactory
 
- 
createSocket
public java.net.Socket createSocket() throws java.io.IOException- Overrides:
 createSocketin classjavax.net.SocketFactory- Throws:
 java.io.IOException
 
- 
createSocket
public java.net.Socket createSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose) throws java.io.IOException- Specified by:
 createSocketin classjavax.net.ssl.SSLSocketFactory- Throws:
 java.io.IOException
 
- 
createSocket
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException- Specified by:
 createSocketin classjavax.net.SocketFactory- Throws:
 java.io.IOException
 
- 
createSocket
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort) throws java.io.IOException- Specified by:
 createSocketin classjavax.net.SocketFactory- Throws:
 java.io.IOException
 
- 
createSocket
public java.net.Socket createSocket(java.net.InetAddress host, int port) throws java.io.IOException- Specified by:
 createSocketin classjavax.net.SocketFactory- Throws:
 java.io.IOException
 
- 
createSocket
public java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException- Specified by:
 createSocketin classjavax.net.SocketFactory- Throws:
 java.io.IOException
 
 - 
 
 -