File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to secure the ports in RMI?

 
Thummalashankar Reddy
Greenhorn
Posts: 21
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.You helped alot
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic