posted 19 years ago
Hi
I am facing problems in implementing JAAS with cutom Policy class. I have created a CustomPolicy class which extends from sun.security.provider.PolicyFile class. In the java.security class I have set the property policy.provider to the custom class and pass the policy file name as command line option.
But when I run the application the custom policy file is not being used. I have printed the policy currently being used and it shows sun.security.provider.PolicyFile.
I don't understand what is going wrong. I have tried to look into the source code to find out which class is creating the Policy class object and where is the getPermissions method invoked, but neither the SecurityManager, nor the AccessController has that.
Can some one please help me to resolve the problem and also to understand who creates the Policy object and who calls the getPermissions method.
Thanks in advance
---
Regards
Ankur