Class SSLConnectionCreator


  • public class SSLConnectionCreator
    extends java.lang.Object
    This class gives a SSL connection back after performing the initial handshakes and everything. This was needed as there is some amount of intelligence involved in creating SSL sockets, because the implementation needs to avoid half open sockets.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.net.ssl.SSLSocket createSocket​(javax.net.ssl.SSLContext sslContext, java.lang.String host, int port, java.lang.String cipherSuites, boolean encryption, int sockType)
      Create an SSL socket, and also take care of infinite wait on the socket if somehow a half open connection issue comes up.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SSLConnectionCreator

        public SSLConnectionCreator()
        Default constructor.
    • Method Detail

      • createSocket

        public javax.net.ssl.SSLSocket createSocket​(javax.net.ssl.SSLContext sslContext,
                                                    java.lang.String host,
                                                    int port,
                                                    java.lang.String cipherSuites,
                                                    boolean encryption,
                                                    int sockType)
        Create an SSL socket, and also take care of infinite wait on the socket if somehow a half open connection issue comes up.
        Parameters:
        sslContext -
        host -
        port -
        cipherSuites -
        encryption -
        sockType -