Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]   Go Down
  Print  
Author Topic: Applet Security Restrictions  (Read 959 times)
0 Members and 1 Guest are viewing this topic.
lokesh05
Member
*

Reputation: 0
Offline Offline
Gender: Male
Posts: 32
Referrals: 0

Awards
« on: July 02, 2008, 11:06:47 PM »

Applet Security

Applet security is generally regarded as a necessary pain by most Java programmers. 011 The ability to download code on-the-fly is a major advantage, but it is also a wonderful tool for the same kind of people who like to write viruses that infect your PC. Angry Fortunately, the designers of Java took that into account and developed a security model that protects your system from malicious attacks. You may consider some of the applet security restrictions draconian, but it is much better to have too much security than too little-especially when Java is still striving for acceptance. These restrictions do not apply to applications, because they are meant to access local files and the local network. The security restrictions are there to protect you from unknowingly loading a malicious program that can be hidden on a Web page. You have to manually run an application on your local system, however, so you are responsible if the application is malicious. 011

Security restrictions vary from browser to browser.

The Microsoft Internet Explorer version 6.0 (IE6 and above) supports several security models from completely relaxed (no restrictions) to completely secure (won't download and run applets at all). In addition, IE3 allows digitally signed classes to have fewer restrictions. These settings can be found in the options tab of your IE!

File Access Restrictions

File access is one of the most vulnerable places for malicious attacks. If someone were able to modify files on your system when you ran an applet, they could implant viruses on your system or just destroy data directly.  dft002 For this reason, no applet is allowed to access the local filesystem in any way-not even in a read-only mode. After all, you wouldn't want someone implanting invisible applets on their Web page just so they could snoop your hard drive and copy files from it. 005 You may be allowed to read and write files if your applet is loaded from the local filesystem using a URL of type "file:".

The inability to read and write files poses a major challenge for applet writers. For the moment, the only solution is to read and write files on applet's home Web server. And believe me, it is the only thing you need and applet is designed for to do the best!  dft009

There are many more restrictions for Applets like Network restrictions, and many other restrictions. I will be drafting them out soon! Happy (depending on the feedback!)
Please post your comments! Happy
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Your Ad Here