Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

applets

Thread view: 
superbobm@hotmail.com - 22 Jun 2006 03:54 GMT
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
Andrew T. - 22 Jun 2006 04:55 GMT
> 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

Whoa up.  I think you are making a mistake right there.

To get around browser class caching problems*, try launching
the applet using JWS.  ..it is just an experiment, but you are
very close to it, given the classes are jar'd and signed.

* I guess you're already using a number of browsers to test.

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.