Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Distributed Java and the fly likes How to secure the ports in RMI? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How to secure the ports in RMI?" Watch "How to secure the ports in RMI?" New topic
Author

How to secure the ports in RMI?

Thummalashankar Reddy
Greenhorn

Joined: Feb 08, 2007
Posts: 21
Hi Friends,

Currently my application is using rmi ports.I have to make that ports are secure please help me on this.
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

You can use RMI with SSL.

If you use JDK 5 and above, you can use SslRMIClientSocketFactory and SslRMIServerSocketFactory classes. Those classes are part in the javax.rmi.ssl package.

If you use JDK 1.4, you need to build the custom client and server factories.

For more info, you take a look at this tutorial.
http://java.sun.com/j2se/1.5.0/docs/guide/rmi/socketfactory/SSLInfo.html


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Thummalashankar Reddy
Greenhorn

Joined: Feb 08, 2007
Posts: 21
Thank you very much.You helped alot
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to secure the ports in RMI?
 
Similar Threads
Server UI
Need info about Swing and EJB
Weblogic Server Listen Ports
Tomcat ssl problem
More than one secure port ..