Using RMI with SSL
Many have asked how a RMI application can make remote invocations over secure SSL connections. Below are some questions and answers about using RMI with SSL.
Q1:is it possible to use RMI with SSL?
A1:yes, it is possible, due to RMI enhancements available in the JAVATM 2 SDK, Standard Edition, v1.2 (Java 2 SDK).
Q2:how do I use RMI with SSL?
A2:the version of RMI included in the Java 2 SDK enables the RMI developer to use custom sockets factories for rmi-based C Ommunication. An application can export a remote object to use an RMI socket factory that creates sockets of the desired type (for Examp Le, SSL sockets). Using this technique, a RMI application can use SSL socket communication instead of the default socket communication. For further details on the using custom socket factories, the tutorial:using a custom RMI socket Factory.
Q3:where can I find a pure Java programming language implementation of SSL?
A3:java 2 SDK, v1.4 includes the Java Secure Socket Extension (JSSE) API which provides an implementation of SSL sockets. The JSSE Reference Guide for more detailed information on the features and benefits of.
Q4:where can I find a example using RMI with SSL?
A4:there is a rmi/ssl example bundled with the JSSE code examples. The RMI example illustrates how to use ssl-based connections for RMI calls to a remote object. This is achieved by exporting a remote object to use a custom RMI socket factory that creates SSL sockets.