de.kosi.rmi
Class RMISSLClientSocketFactory

java.lang.Object
  |
  +--de.kosi.rmi.RMISSLClientSocketFactory
All Implemented Interfaces:
java.rmi.server.RMIClientSocketFactory, java.io.Serializable

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

Implements a SSL ClientSocketFactory for RMI.

Author:
sun
See Also:
Serialized Form

Constructor Summary
RMISSLClientSocketFactory()
          Create a new SocketFactory.
 
Method Summary
 java.net.Socket createSocket(java.lang.String host, int port)
          Create a new socket connection.
 boolean equals(java.lang.Object obj)
          Override the equals method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMISSLClientSocketFactory

public RMISSLClientSocketFactory()
Create a new SocketFactory.
Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port)
                             throws java.io.IOException
Create a new socket connection.
Specified by:
createSocket in interface java.rmi.server.RMIClientSocketFactory
Parameters:
host - host to connect to.
port - port to connect to.
Returns:
a new socket.
Throws:
java.io.IOException - if the socket could not be created.

equals

public boolean equals(java.lang.Object obj)
Override the equals method. This factory equals every other factory of the same class.
Overrides:
equals in class java.lang.Object
Parameters:
obj - Object to compare.
Returns:
wether this is equals to obj.