Class SSLSocketFactory

    • Constructor Detail

      • SSLSocketFactory

        public SSLSocketFactory()
        Create the SSL socket factory. Initialize the key managers and trust managers which are passed to the SSL context.
    • Method Detail

      • createSocket

        public ServerSocket createSocket​(int port,
                                         int backlog)
                                  throws IOException
        Create the socket at the specified port.
        Specified by:
        createSocket in interface ServerSocketFactory
        Parameters:
        port - the port number.
        backlog - how many connections are queued
        Returns:
        the SSL server socket.
        Throws:
        IOException - input/output or network error
      • createSocket

        public ServerSocket createSocket​(int port,
                                         int backlog,
                                         InetAddress ifAddress)
                                  throws IOException
        Create the socket at the specified port.
        Specified by:
        createSocket in interface ServerSocketFactory
        Parameters:
        port - the port number.
        backlog - how many connections are queued
        ifAddress - the network interface address to use
        Returns:
        the SSL server socket.
        Throws:
        IOException - input/output or network error
      • initStoresAtStartup

        public static void initStoresAtStartup()
                                        throws Exception
        Throws:
        Exception