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 {@link 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 {@link #createSocket(String,int)}method; in that case, {@link #equals(Object) equals} and {@link #hashCode() hashCode} may also need to be overridden.
If the system property javax.rmi.ssl.client.enabledCipherSuites is specified, the {@link #createSocket(String,int)} method will call {@link SSLSocket#setEnabledCipherSuites(String[])} before returning thesocket. 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 {@link #createSocket(String,int)} method will call {@link SSLSocket#setEnabledProtocols(String[])} before returning thesocket. The value of this system property is a string that is a comma-separated list of SSL/TLS protocol versions to enable.
@see javax.net.ssl.SSLSocketFactory
@see javax.rmi.ssl.SslRMIServerSocketFactory
@since 1.5