• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access Rights

 
Shilpa Sharma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can an applet "test" the system to determine its access rights? Why or Why not.
------------------
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

what type of test do you have in mind?
I did some test on system read/wirte permissions.
Chk out this posting.....
regds.
- satya
 
Shilpa Sharma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply Satya.
Can u please tell me which of the below mentioned answers are correct.
Can an applet "test" the system to determine its access rights why or why not?
1. no, the information is in the System object, which is restricted from applets
2. yes, by querying its ClassLoader object
3. no, applets can not query the SecurityManager directly
4. no, the applet is automatically terminated when it tries to access restricted resources
5. yes by attempting various operations and catching SecurityExceptions
Regards,
Shilpa
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hopefully, you don't expect me to give you a straight
forward answer, do you! Well, sorry to disappoint you,
but I am not an Applet guru, trying to be......
I can suggest this FAQ with examples, for further reading, I do it but,
as needed only! This FAQ is about Applet Security.
HTH. regds.
- satya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic