javax.rmi.ssl
Class SslRMIClientSocketFactory

java.lang.Object
  extended by javax.rmi.ssl.SslRMIClientSocketFactory
All Implemented Interfaces:
Serializable, RMIClientSocketFactory

public class SslRMIClientSocketFactory
extends Object
implements RMIClientSocketFactory, Serializable

SslRMIClientSocketFactory This class implements an RMIClientSocketFactory for SSL sockets. it uses the defeult SSLClientSocketFactory. This class can optionally use the following system properties, if set: javax.rmi.ssl.client.enabledCipherSuites javax.rmi.ssl.client.enabledProtocols These properties will specify a list of SSL/TLS cipher suites and protocols, respectively, to enable on the created sockets. Both properties should consist of a comma-separated list.

Since:
1.5
See Also:
Serialized Form

Constructor Summary
SslRMIClientSocketFactory()
          Creates a new SslRMIClientSocketFactory
 
Method Summary
 Socket createSocket(String host, int port)
          Creates an SSLSocket on a given port
 boolean equals(Object obj)
          Compare two SslRMIServerSocketFactor instances
 int hashCode()
          Returns the hash code of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SslRMIClientSocketFactory

public SslRMIClientSocketFactory()
Creates a new SslRMIClientSocketFactory

Method Detail

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException
Creates an SSLSocket on a given port

Specified by:
createSocket in interface RMIClientSocketFactory
Throws:
IOException - if an error occurs on socket creation.

equals

public boolean equals(Object obj)
Compare two SslRMIServerSocketFactor instances

Overrides:
equals in class Object
Parameters:
obj - the Object to compare to
Returns:
whether this Object is semantically equal to another
See Also:
Object.hashCode()

hashCode

public int hashCode()
Returns the hash code of this object.

Overrides:
hashCode in class Object
Returns:
the hash code for this Object
See Also:
Object.equals(Object), System.identityHashCode(Object)