How can my applet communicate with servlet via HTTPS?

hi all,

I'm using jdk1.4.2_03. Tomcat 4.1.27/29.

My applet used to communicate to serlvet/JSP via http protocol. However, I wish to apply SSL in my tomcat standalone. Is there any implication towards my existing applet to servlet codes?

For example,

URL servletURL = new URL("http://www.myhost.com/Shopping");

// open connection between applet and servlet

URLConnection servletConnection = servletURL.openConnection();

servletConnection.setDoOutput(true);// allow connection do output

servletConnection.setDoInput(true);// allow connection do input

servletConnection.setUseCaches(false);

servletConnection.setRequestProperty("Content-Type", "application/octet-stream");

ObjectInputStream input = new ObjectInputStream(servletConnection.getInputStream());

resultset = (Vector)input.readObject(); //get Object from Servlet

input.close();

[923 byte] By [airqqa] at [2007-9-30 0:35:30]
# 1
pls help.... :(
airqqa at 2007-7-16 5:06:54 > top of Java-index,Security,Signed Applets...
# 2
http://java.sun.com/j2se/1.4.2/docs/api/javax/net/ssl/HttpsURLConnection.htmlI never used it though, you can check for some code here: http://javaalmanac.com/cgi-bin/search/find.pl?words=HttpsURLConnection
harmmeijera at 2007-7-16 5:06:54 > top of Java-index,Security,Signed Applets...