com.sun.web.security
Class SSLSocketFactory

java.lang.Object
  extended by com.sun.web.security.SSLSocketFactory
All Implemented Interfaces:
ServerSocketFactory

public class SSLSocketFactory
extends java.lang.Object
implements ServerSocketFactory

SSL server socket factory.

Author:
Harish Prabandham, Vivek Nagar, Harpreet Singh

Constructor Summary
SSLSocketFactory()
          Create the SSL socket factory.
 
Method Summary
 java.net.ServerSocket createSocket(int port)
          Create the socket at the specified port.
 java.net.ServerSocket createSocket(int port, int backlog)
          Create the socket at the specified port.
 java.net.ServerSocket createSocket(int port, int backlog, java.net.InetAddress ifAddress)
          Create the socket at the specified port.
static void initStoresAtStartup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 java.net.ServerSocket createSocket(int port)
                                   throws java.io.IOException
Create the socket at the specified port.

Specified by:
createSocket in interface ServerSocketFactory
Parameters:
port - the port number.
Returns:
the SSL server socket.
Throws:
java.io.IOException

createSocket

public java.net.ServerSocket createSocket(int port,
                                          int backlog)
                                   throws java.io.IOException
Create the socket at the specified port.

Specified by:
createSocket in interface ServerSocketFactory
Parameters:
port - the port number.
Returns:
the SSL server socket.
Throws:
java.io.IOException

createSocket

public java.net.ServerSocket createSocket(int port,
                                          int backlog,
                                          java.net.InetAddress ifAddress)
                                   throws java.io.IOException
Create the socket at the specified port.

Specified by:
createSocket in interface ServerSocketFactory
Parameters:
port - the port number.
Returns:
the SSL server socket.
Throws:
java.io.IOException

initStoresAtStartup

public static void initStoresAtStartup()
                                throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2012 GlassFish Community. All Rights Reserved.