Class SSLSocketFactory

java.lang.Object
com.sun.web.security.SSLSocketFactory
All Implemented Interfaces:
org.apache.catalina.net.ServerSocketFactory

public class SSLSocketFactory extends Object implements org.apache.catalina.net.ServerSocketFactory
SSL server socket factory.
Author:
Harish Prabandham, Vivek Nagar, Harpreet Singh
  • Constructor Details

    • SSLSocketFactory

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

    • createSocket

      public ServerSocket createSocket(int port) throws IOException
      Create the socket at the specified port.
      Specified by:
      createSocket in interface org.apache.catalina.net.ServerSocketFactory
      Parameters:
      port - the port number.
      Returns:
      the SSL server socket.
      Throws:
      IOException
    • createSocket

      public ServerSocket createSocket(int port, int backlog) throws IOException
      Create the socket at the specified port.
      Specified by:
      createSocket in interface org.apache.catalina.net.ServerSocketFactory
      Parameters:
      port - the port number.
      Returns:
      the SSL server socket.
      Throws:
      IOException
    • createSocket

      public ServerSocket createSocket(int port, int backlog, InetAddress ifAddress) throws IOException
      Create the socket at the specified port.
      Specified by:
      createSocket in interface org.apache.catalina.net.ServerSocketFactory
      Parameters:
      port - the port number.
      Returns:
      the SSL server socket.
      Throws:
      IOException
    • initStoresAtStartup

      public static void initStoresAtStartup() throws Exception
      Throws:
      Exception