This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.rmi.ssl
class SslRMIClientSocketFactory

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

Most common way to construct:

SslRMIClientSocketFactory csf = new SslRMIClientSocketFactory();

Based on 37 examples


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 {@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 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 {@link #createSocket(String,int)} method will call {@link 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.


Constructor Summary

          Creates a new SslRMIClientSocketFactory.
 
Method Summary
 Socket
createSocket(String host, int port)

          Creates an SSL socket.
 boolean

          Indicates whether some other object is "equal to" this one.
 int

          Returns a hash code value for this SslRMIClientSocketFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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 SSL socket.

If the system property javax.rmi.ssl.client.enabledCipherSuites is specified, this method will call {@link 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 {@link 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.

Parameters:
host
port
Throws:
IOException

equals

public 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 {@link #hashCode()}) if its instances are not all functionally equivalent.

Overrides:
equals in class Object
Parameters:
obj

hashCode

public int hashCode()

Returns a hash code value for this SslRMIClientSocketFactory.

Overrides:
hashCode in class Object
Returns:
a hash code value for this SslRMIClientSocketFactory.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.