Link to home
Start Free TrialLog in
Avatar of richp
richp

asked on

Looking for JSSE Applet Sample

I have an applet that needs to connect to a server via https.  Does anyone have sample code demonstrating how to use the URL class in the client and the SSLServerSocketFactory on the server side?  
Avatar of vladi21
vladi21

Can Java applet post to an SSL enabled server?
Yes. All you need to do is post to the "https://" URL. You don't need to have packages such as SSLava. The URLConnection class will say that https is an unknown protocol if the applet is run in the appletviewer, but it will do the right thing if run inside the Navigator.

Do I need to sign my classes to do out of SandBox operation, when they are servered from https server?
There is no need to sign the classes if they are served from an SSL enabled server (https) server, but you need to make PrivilegeManager.enableprivilege() calls with appropriate target (even System Classes do this) for doing out of SandBox operations.

http://java.sun.com/security/ssl/API_users_guide.html 
ravindra76: can you specify exact links
or your are just bot which call google search engine with question title? :)
ASKER CERTIFIED SOLUTION
Avatar of vladi21
vladi21

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

All rivers will go into sea.

:) :) :)