Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to secure the ports in RMI?

 
Thummalashankar Reddy
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Thummalashankar Reddy
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.You helped alot
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic