public class SslRMIClientSocketFactory extends Object implements RMIClientSocketFactory, Serializable
An SslRMIClientSocketFactory instance is used by the RMI
 runtime in order to obtain client sockets for RMI calls via SSL.
This class implements RMIClientSocketFactory over
 the Secure Sockets Layer (SSL) or Transport Layer Security (TLS)
 protocols.
This class creates SSL sockets using the default
 SSLSocketFactory (see SSLSocketFactory.getDefault()).  All instances of this class are
 functionally equivalent.  In particular, they all share the same
 truststore, and the same keystore when client authentication is
 required by the server.  This behavior can be modified in
 subclasses by overriding the createSocket(String,int)
 method; in that case, equals and hashCode may also need to be overridden.
If the system property
 javax.rmi.ssl.client.enabledCipherSuites is specified,
 the createSocket(String,int) method will call SSLSocket.setEnabledCipherSuites(String[]) before returning the
 socket.  The value of this system property is a string that is a
 comma-separated list of SSL/TLS cipher suites to enable.
If the system property
 javax.rmi.ssl.client.enabledProtocols is specified,
 the createSocket(String,int) method will call SSLSocket.setEnabledProtocols(String[]) before returning the
 socket.  The value of this system property is a string that is a
 comma-separated list of SSL/TLS protocol versions to enable.
SSLSocketFactory, 
SslRMIServerSocketFactory, 
Serialized Form| Constructor and Description | 
|---|
| SslRMIClientSocketFactory()Creates a new  SslRMIClientSocketFactory. | 
public SslRMIClientSocketFactory()
Creates a new SslRMIClientSocketFactory.
public Socket createSocket(String host, int port) throws IOException
Creates an SSL socket.
If the system property
 javax.rmi.ssl.client.enabledCipherSuites is
 specified, this method will call SSLSocket.setEnabledCipherSuites(String[]) before returning
 the socket. The value of this system property is a string that
 is a comma-separated list of SSL/TLS cipher suites to
 enable.
If the system property
 javax.rmi.ssl.client.enabledProtocols is
 specified, this method will call SSLSocket.setEnabledProtocols(String[]) before returning the
 socket. The value of this system property is a string that is a
 comma-separated list of SSL/TLS protocol versions to
 enable.
createSocket in interface RMIClientSocketFactoryhost - the host nameport - the port numberIOException - if an I/O error occurs during socket creationpublic boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
Because all instances of this class are functionally equivalent
 (they all use the default
 SSLSocketFactory), this method simply returns
 this.getClass().equals(obj.getClass()).
A subclass should override this method (as well
 as hashCode()) if its instances are not all
 functionally equivalent.
equals in class Objectobj - the reference object with which to compare.true if this object is the same as the obj
          argument; false otherwise.Object.hashCode(), 
HashMappublic int hashCode()
Returns a hash code value for this
 SslRMIClientSocketFactory.
hashCode in class ObjectSslRMIClientSocketFactory.Object.equals(java.lang.Object), 
System.identityHashCode(java.lang.Object) Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2011, Oracle and/or its affiliates.  All rights reserved.