Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Support for the OSGi r4.2 security specifications including PermissionAdmin and ConditionalPermissionAdmin is provided by the framework.security extension bundle. The bundle provides both, the packages as well as the services when it is installed.

Note

For now, the extension bundle is not yet released (you can find it in trunk/framework.security) and only works with the latest framework trunk version.

All that needs to be done is to install the org.apache.felix.framework.security -0.9.0-SNAPSHOT.jar bundle into the framework.

...

Code Block
titleExample
$ java -Djava.security.policy=all.policy -Dorg.osgi.framework.security="osgi" -jar bin/felix.jar

Welcome to Felix
================

-> install file:org.apache.felix.framework.security-0.9.0-SNAPSHOT.jar
-> inspect s c 0
System Bundle (0) provides services:
------------------------------------
objectClass = org.osgi.service.startlevel.StartLevel
service.id = 1
----
objectClass = org.osgi.service.packageadmin.PackageAdmin
service.id = 2
----
objectClass = org.osgi.service.permissionadmin.PermissionAdmin
service.id = 3
----
objectClass = org.osgi.service.condpermadmin.ConditionalPermissionAdmin
service.id = 4