I am trying to write class that implements SSL Sockets instead of regular Sockets when using RMI. I have class that is adapter and now I have a problem: How can I convert (easy way) SSL socket to regular one. Can I just cast it (I don't think so) or do I have implement all methods from Socket class?
In fact, JSSE comes with a complete example demonstrating how to use RMI over SSL. It's pretty easy... once you know how Have a look in jsse*\samples\rmi (it's in JDK 1.4 too but buried somewhere deep inside the documentation directories, have a look). - Peter
Vladimir Ergovic
Ranch Hand
Joined: Apr 22, 2001
Posts: 63
posted
0
Thanks, maybe I was not too clear. I am familiar with all those links and I red 3 books about it but there is no example how it should be done. For example in Remote Method Invocation Guide, author left the problem for reader to do as exercise The problem is that interface defined in RMI say for example: Socket accept(). Now if I do following: Socket accept(){ return (Socket)sslSocketInstance; } Not good. That is the problem!
Vladimir Ergovic
Ranch Hand
Joined: Apr 22, 2001
Posts: 63
posted
0
Thanks, maybe I was not too clear. I am familiar with all those links and I red 3 books about it but there is no example how it should be done. For example in Remote Method Invocation Guide, author left the problem for reader to do as exercise The problem is that interface defined in RMI say for example: Socket accept(). Now if I do following: Socket accept(){ return (Socket)sslSocketInstance; } Not good. That is the problem!