I want to code an applet wich needs a special security permissions, ie: network access to do an http GET to a site.
I signed the applet myself and did a simple test with this result:
java.security.AccessControlException: access denied ("java.net.SocketPermission" "www.google.com:80" "connect,resolve")
I also try to add the security policy inside the manifest file with no luck.
I dont really understand what should be the correct producedure,
Should i use a policy file inside the jar? where exactly it should be located?
Should i put some policy definition on the APPLET tag on the HTML?
Should i do something inside the code to ask for privileges/permission?
Should i use other launch method like JNLP? does this make any difference?
Thanks