S
superbobm
I am writing a signed applet that needs to write to file and use socket
connections. I have found that even with a signed applet it seems that
the only way to do this is to edit the .java.policy file and add the
lines
permission java.io.FilePermission "*", "write";
permission java.net.SocketPermission "*", "resolve";
permission java.net.SocketPermission "*", "connect";
But I don't want the user to have to do this. I want it done
automatically. But since I dont have write access to files I can't open
the policy file myself to do this, so how can I get these permissions?
I realise there are security implications in doing this, but since it
is a signed applet the user has to agree to the security certificate.
Thanks
connections. I have found that even with a signed applet it seems that
the only way to do this is to edit the .java.policy file and add the
lines
permission java.io.FilePermission "*", "write";
permission java.net.SocketPermission "*", "resolve";
permission java.net.SocketPermission "*", "connect";
But I don't want the user to have to do this. I want it done
automatically. But since I dont have write access to files I can't open
the policy file myself to do this, so how can I get these permissions?
I realise there are security implications in doing this, but since it
is a signed applet the user has to agree to the security certificate.
Thanks