How to get Subject from within Policy.implies()?

I have to create a dynamic (changeable at runtime) security environment, so I have extended Policy class and overridden implies method. I need to make decisions based onsubject. How can find it from within this method?

Is there already any Policy implementation that can do this(dynamic permission) for me. Or is there any way to manipulate Sun's PolicyFile permissions at runtime?

Regards

Ali

[427 byte] By [Alisa] at [2007-11-27 2:46:23]
# 1
Is it wrong question or wrong thing to do?Let's make it a little bit easier/better/worse:How can I change policy permissions at runtime?
Alisa at 2007-7-12 3:14:52 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
I think you need to look at JAAS.
ejpa at 2007-7-12 3:14:52 > top of Java-index,Security,Other Security APIs, Tools, and Issues...