SmartFrog 3.10.000

org.smartfrog.sfcore.security
Class SFServerSocketFactory

java.lang.Object
  extended by org.smartfrog.sfcore.security.SFServerSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIServerSocketFactory

public class SFServerSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIServerSocketFactory

A server socket factory that adapts a SSL server socket factory so that it can be used to generate RMI server sockets.


Constructor Summary
SFServerSocketFactory(SFSecurityEnvironment secEnv)
          Constructs SFServerSocketFactory with security environment.
 
Method Summary
 java.net.ServerSocket createServerSocket(int port)
          Create a server socket on the specified port (port 0 indicates an anonymous port).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SFServerSocketFactory

public SFServerSocketFactory(SFSecurityEnvironment secEnv)
Constructs SFServerSocketFactory with security environment.

Parameters:
secEnv - A security environment that handles the configuration of sockets.
Method Detail

createServerSocket

public java.net.ServerSocket createServerSocket(int port)
                                         throws java.io.IOException
Create a server socket on the specified port (port 0 indicates an anonymous port).

Specified by:
createServerSocket in interface java.rmi.server.RMIServerSocketFactory
Parameters:
port - The port number
Returns:
The server socket in the specified port
Throws:
java.io.IOException - Cannot create server socket.

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP