-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public class TLSSocketFactory extends SSLSocketFactory implements AutoCloseable
Created by himanshu.gupta on 03/04/18.
TLSSocketFactory class to enable TLS protocols while making javax.net.ssl.HttpsURLConnection used with javax.net.ssl.HttpsURLConnectionsetSSLSocketFactory
-
-
Method Summary
Modifier and Type Method Description Array<String>getDefaultCipherSuites()Array<String>getSupportedCipherSuites()SocketcreateSocket()SocketcreateSocket(Socket s, String host, int port, boolean autoClose)SocketcreateSocket(String host, int port)SocketcreateSocket(String host, int port, InetAddress localHost, int localPort)SocketcreateSocket(InetAddress host, int port)SocketcreateSocket(InetAddress address, int port, InetAddress localAddress, int localPort)static voidsafeClose(Socket s)voidclose()-
Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket, getDefault, getDefaultCipherSuites, getSupportedCipherSuites -
Methods inherited from class java.lang.AutoCloseable
close -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDefaultCipherSuites
Array<String> getDefaultCipherSuites()
-
getSupportedCipherSuites
Array<String> getSupportedCipherSuites()
-
createSocket
Socket createSocket()
-
createSocket
Socket createSocket(Socket s, String host, int port, boolean autoClose)
-
createSocket
Socket createSocket(String host, int port)
-
createSocket
Socket createSocket(String host, int port, InetAddress localHost, int localPort)
-
createSocket
Socket createSocket(InetAddress host, int port)
-
createSocket
Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
-
close
void close()
-
-
-
-