> Has anyone granted special permission to a special principal in policy
> file?
> It doesn't work for me at J2SDK 1.4.2. When I use Subject.doAs the
> permission is denied,
> but if I use Subject.doAsPrivileged I ever get granted permission for
> anybody.
Well, this happen when the third parameter of doAsPriviledge (AccessControlContext) is
null, because API specification says:
'If the provided AccessControlContext is null, this method instantiates a new AccessControlContext with an empty
collection of ProtectionDomains.'
But if I put the current AccessControlContext, I receive a permission denied like when I use doAs.
EdUarDo - 17 Mar 2004 15:48 GMT
>> Has anyone granted special permission to a special principal in policy
>> file? It doesn't work for me at J2SDK 1.4.2. When I use Subject.doAs
[quoted text clipped - 11 lines]
> But if I put the current AccessControlContext, I receive a permission
> denied like when I use doAs.
Sorry, I forgot that anyway, I can't get that my Principal gets permission granted...
What's wrong? Where I can get documentation? At java.sun.com there is nothing about
this issue...