As I mentioned on the Security policy Service thread, OSGi uses a permissions.perms file to describe a bundle's (jar file) local permissions.

The apache felix classes that parse this file are:

org.osgi.service.permissionadmin.PermissionInfo
org.apache.felix.framework.security.util.LocalPermissions

It appears pretty simple to make use of this file format with proven code for retrieving permissions from jar files, which we can use to determine the permissions smart proxy's require.

Cheers,

Peter.

Reply via email to