Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessibility question

 
Chris Wagnor
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Actually this is not an applet question but the root cause is the use of applets thats why I thought to put it here.
As applets cannot access anything beyond JVM in the Browser window, a special java.policy file needs to be made to grant access to certain things.
PROBLEM: I am using a class from sun.security.krb5 package which throws exception in checkPackageAccess() function of SecurityManager.
I am using the sun.security.krb5 class in an applet in order to get some information from the client's computer when he is running the applet. Since its internal, we expect that the client's computer has a java.policy file for the same.
Now when I run the applet on the client's computer then the error on the console is
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.security.krb5)
. The problem here is that I am having the following line on my java.policy file "permission java.lang.RuntimePermission "accessClassInPackage.sun.security.krb5"".
So if you could please enlighten me how to go about things then I would be very helpful.
 
Murali Kurukunda
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you calling the applet's method(that does the security related check) from javascript code?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic