mx4j.tools.adaptor.rmi

Class SSLRMIClientSocketFactory

Implemented Interfaces:
RMIClientSocketFactory, Serializable

public class SSLRMIClientSocketFactory
extends java.lang.Object
implements RMIClientSocketFactory, Serializable

The SSL socket factory for RMI connections.

The implementation relies on SSLSocketFactory.getDefault() that creates a default SSLContext; this context is initialized with a trust store that must contain the certificate of the server, otherwise a javax.net.ssl.SSLException: untrusted server cert chain is thrown. The default trust store is searched in this order

So the client normally must have the certificate of the server, and have it in one of the above positions for RMI over SSL to work.

Version:
$Revision: 1.3 $

Method Summary

Socket
createSocket(String host, int port)

Method Details

createSocket

public Socket createSocket(String host,
                           int port)
            throws IOException


Copyright © 2001-2003 MX4J Team. All Rights Reserved.