Using Java RMI with SSL
A Java Remote Method Invocation (RMI) application can make remote invocations over secure SSL connections using custom socket factories. An application can export a remote object to use an RMI socket factory that creates SSL sockets. Using this method, an RMI application can use SSL socket communication instead of the default socket communication.