Lately I've been looking at JAAS and
its capability to dynamically associate permissions based on principals
(usually declared in a policy file) and from that to use Subject.doAsPriviledged.
Given that OSGi has its own way of expressing
permissions, I would like to understand how principal based permissions
can be declared.