com.ibm.websphere.ssl.protocol

Class SSLServerSocketFactory

  1. java.lang.Object
  2. extended byjavax.net.ServerSocketFactory
  3. extended byjavax.net.ssl.SSLServerSocketFactory
  4. extended bycom.ibm.websphere.ssl.protocol.SSLServerSocketFactory

  1. public class SSLServerSocketFactory
  2. extends javax.net.ssl.SSLServerSocketFactory

This class is for creating SSLServerSockets. It utilizes the com.ibm.websphere.ssl.JSSEHelper APIs to retrieve WebSphere SSL configuration information. You can pass in a Properties object containing SSL properties, an SSL alias, or allow it to return the default SSL properties.

Since:
WAS 6.1
Version:
1.0
See Also:
JSSEHelper

Constructor Summary

Constructor and Description
SSLServerSocketFactory()
This is the default constructor which will retrieve the default SSL configuration for creating ServerSockets.
SSLServerSocketFactory(java.util.Properties sslprops)
This constructor allows you to pass in a set of SSL properties used for creating ServerSockets.
SSLServerSocketFactory(java.lang.String alias)
This constructor allows you to pass in an SSL alias to retrieve an SSL configuration other than the default for creating ServerSockets.
SSLServerSocketFactory(java.lang.String alias,java.lang.String localEndPointName)
This constructor allows you to pass in an SSL alias or localEndPointName, depending upon what is available.

Method Summary

Modifier and Type Method and Description
  1. java.net.ServerSocket
createServerSocket()
Returns an unbound server socket.
  1. java.net.ServerSocket
createServerSocket(int port)
Returns a server socket bound to the specified port.
  1. java.net.ServerSocket
createServerSocket(int port,int backlog)
Returns a server socket bound to the specified port, and uses the specified connection backlog.
  1. java.net.ServerSocket
createServerSocket(int port,int backlog,java.net.InetAddress ifAddress)
Returns a server socket bound to the specified port, with a specified listen backlog and local IP.
  1. static
  2. javax.net.ServerSocketFactory
getDefault()
Returns a copy of the environment's default socket factory.
  1. java.lang.String[]
getDefaultCipherSuites()
Returns the list of cipher suites which are enabled by default.
  1. java.lang.String[]
getSupportedCipherSuites()
Returns the names of the cipher suites which could be enabled for use on an SSL connection created by this factory.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SSLServerSocketFactory

  1. public SSLServerSocketFactory()

This is the default constructor which will retrieve the default SSL configuration for creating ServerSockets. It first tries to find the javax.net.ssl.* properties and if not present will choose the default SSL configuration.


SSLServerSocketFactory

  1. public SSLServerSocketFactory(java.lang.String alias)

This constructor allows you to pass in an SSL alias to retrieve an SSL configuration other than the default for creating ServerSockets. If the alias is not found, the default SSL configuration will be used.


SSLServerSocketFactory

  1. public SSLServerSocketFactory(java.util.Properties sslprops)

This constructor allows you to pass in a set of SSL properties used for creating ServerSockets.


SSLServerSocketFactory

  1. public SSLServerSocketFactory(java.lang.String alias,
  2. java.lang.String localEndPointName)

This constructor allows you to pass in an SSL alias or localEndPointName, depending upon what is available. You may specified null for any parameters. If SSL alias is specified, a direct selection will occur and default properties will be used if the alias is not found. If localEndPointName is specified, a group selection will occur where the localEndPoint will be used to determine if an SSL config is associated with that endpoint. If not, it will move up the topology to determine the next management scope that has an SSL configuration associated which this EndPoint falls under (e.g., server -> node -> cell, etc.).

Method Detail

getDefault

  1. public static javax.net.ServerSocketFactory getDefault( )

Returns a copy of the environment's default socket factory.


getDefaultCipherSuites

  1. public java.lang.String[] getDefaultCipherSuites( )

Returns the list of cipher suites which are enabled by default.

Specified by:
getDefaultCipherSuites in class javax.net.ssl.SSLServerSocketFactory

getSupportedCipherSuites

  1. public java.lang.String[] getSupportedCipherSuites( )

Returns the names of the cipher suites which could be enabled for use on an SSL connection created by this factory.

Specified by:
getSupportedCipherSuites in class javax.net.ssl.SSLServerSocketFactory

createServerSocket

  1. public java.net.ServerSocket createServerSocket( )
  2. throws java.io.IOException

Returns an unbound server socket. The socket is configured with the socket options (such as accept timeout) given to this factory.

Overrides:
createServerSocket in class javax.net.ServerSocketFactory
Returns:
java.net.ServerSocket
Throws:
java.io.IOException

createServerSocket

  1. public java.net.ServerSocket createServerSocket( int port)
  2. throws java.io.IOException

Returns a server socket bound to the specified port. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in class javax.net.ServerSocketFactory
Returns:
java.net.ServerSocket
Throws:
java.io.IOException

createServerSocket

  1. public java.net.ServerSocket createServerSocket( int port,
  2. int backlog)
  3. throws java.io.IOException

Returns a server socket bound to the specified port, and uses the specified connection backlog. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in class javax.net.ServerSocketFactory
Returns:
java.net.ServerSocket
Throws:
java.io.IOException

createServerSocket

  1. public java.net.ServerSocket createServerSocket( int port,
  2. int backlog,
  3. java.net.InetAddress ifAddress)
  4. throws java.io.IOException

Returns a server socket bound to the specified port, with a specified listen backlog and local IP. The bindAddr argument can be used on a multi-homed host for a ServerSocket that will only accept connect requests to one of its addresses. The socket is configured with the socket options (such as accept timeout) given to this factory.

Specified by:
createServerSocket in class javax.net.ServerSocketFactory
Returns:
java.net.ServerSocket
Throws:
java.io.IOException