Class SSLConnectionCreator.SocketCreationTask

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    SSLConnectionCreator

    public static class SSLConnectionCreator.SocketCreationTask
    extends java.lang.Object
    implements java.lang.Runnable
    Task for creation of socket. And this will be carried out in a different thread.
    • Constructor Summary

      Constructors 
      Constructor Description
      SocketCreationTask​(javax.net.ssl.SSLContext sslContext, java.lang.String host, int port, java.lang.String cipherSuites, boolean encryption, int sockType)
      Create this task.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.net.ssl.SSLSocket getSocket​(long waitTime)
      Gets the SSL socket, and wait for specified wait period at the max.
      void run()  
      void setThread​(java.lang.Thread threadRunningThisTask)
      Sets the thread which is runnning this task.
      • Methods inherited from class java.lang.Object

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

      • SocketCreationTask

        public SocketCreationTask​(javax.net.ssl.SSLContext sslContext,
                                  java.lang.String host,
                                  int port,
                                  java.lang.String cipherSuites,
                                  boolean encryption,
                                  int sockType)
        Create this task.
        Parameters:
        sslContext -
        host -
        port -
        cipherSuites -
        encryption -
        sockType -
    • Method Detail

      • setThread

        public void setThread​(java.lang.Thread threadRunningThisTask)
        Sets the thread which is runnning this task.
        Parameters:
        threadRunningThisTask -
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • getSocket

        public javax.net.ssl.SSLSocket getSocket​(long waitTime)
        Gets the SSL socket, and wait for specified wait period at the max.