jxl.superstatic
Class SSSocketFactory

java.lang.Object
  extended by jxl.superstatic.SSSocketFactory
All Implemented Interfaces:
java.io.Serializable, java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory

public class SSSocketFactory
extends java.lang.Object
implements java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory, java.io.Serializable

A local only RMI socket factory that enables Superstatic to operate securly on the local system.

Author:
Alex Lynch
See Also:
Serialized Form

Constructor Summary
SSSocketFactory()
          Creates a new instance of SSSocketFactory
 
Method Summary
 java.net.ServerSocket createServerSocket(int param)
          Creates ServerSockets that only accept connections from the local machine.
 java.net.Socket createSocket(java.lang.String host, int port)
          Creates only sockets to the local machine.
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSSocketFactory

public SSSocketFactory()
Creates a new instance of SSSocketFactory

Method Detail

createServerSocket

public java.net.ServerSocket createServerSocket(int param)
                                         throws java.io.IOException
Creates ServerSockets that only accept connections from the local machine.

Specified by:
createServerSocket in interface java.rmi.server.RMIServerSocketFactory
Throws:
java.io.IOException

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException
Creates only sockets to the local machine.

Specified by:
createSocket in interface java.rmi.server.RMIClientSocketFactory
Throws:
java.io.IOException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object