Using RMI with SSL

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.