a_kiat80
asked on
using applet to establish link between client and server
Can I using applet to establish the link between client side and server side program??inside the applet...I use socket to link the both program....isn't applet allow me to do this??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Or sign your applet, this will allow it to connect to any host.
ASKER
Hi objects.....what you mean by sign my applet??
A signed applet is one that's source and integrity are guaranteed by its author. This is done by attaching a digital signature to it indicating it's creator.
Hi
this might be of help:
An applet in a jar is signed by analyzing the classes and data in the jar and calculating some relatively unique numbers based on the analysis. These numbers are then stored in some extra files added to the applet jar.
When the browser (or Java Plug-in) runs the applet, it notices the extra files, runs the same analysis on the applet content and compares its results with those stored in the extra files. If they match, it is VERY unlikely that the applet has been modified since signing. The analyses done are carefully chosen so that even small changes to any of the applet's content would produce different analysis results.
So, an applet is signed when the applet jar contains signature information and that information correctly matches the other contents in the jar.
you can refer to these links to know
more about signed applets
http://www.suitable.com/Doc_CodeSigning.shtml
http://www.sas.com/rnd/appdev/tech/signing/RSASigning.htm
this might be of help:
An applet in a jar is signed by analyzing the classes and data in the jar and calculating some relatively unique numbers based on the analysis. These numbers are then stored in some extra files added to the applet jar.
When the browser (or Java Plug-in) runs the applet, it notices the extra files, runs the same analysis on the applet content and compares its results with those stored in the extra files. If they match, it is VERY unlikely that the applet has been modified since signing. The analyses done are carefully chosen so that even small changes to any of the applet's content would produce different analysis results.
So, an applet is signed when the applet jar contains signature information and that information correctly matches the other contents in the jar.
you can refer to these links to know
more about signed applets
http://www.suitable.com/Doc_CodeSigning.shtml
http://www.sas.com/rnd/appdev/tech/signing/RSASigning.htm
ASKER
thank you sanjay thakur.....I will try it....thanks a lot
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- points to objects (12/12/2001 08:48PM PST)
Please leave any comments here within the
next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
girionis
Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
- points to objects (12/12/2001 08:48PM PST)
Please leave any comments here within the
next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
girionis
Cleanup Volunteer
For example, if you try to do this from an applet that did not originate from the machine foo.com, it will fail with a security exception:
Socket s = new Socket("foo.com", 25, true);
you can further look at this link
http://java.sun.com/sfaq/#socket
The only other way is to
Use a proxy (a program operating on behalf of another) on the Web server host, and let this program redirect the communication to the remote host.
not sure if it will work in all cases
you can refer to this link for setting up a proxy
http://www.ifi.uio.no/~ftp/publications/cand-scient-theses/SHuseby/html/node35.html#SECTION00810000000000000000