Hi,
I am trying to embbed Felix into an Application but I have ran into problems
with the security aspects.
How is the ConditionPermissionAdmin Service actually done?
I have the bundle and install it into the felix framework but at which point
do I actually add the code for conditionpermissionadmin?
When I tried to add it in the felix framework 

ConditionalPermissionAdmin cpa = null;
                ConditionalPermissionUpdate u =
cpa.newConditionalPermissionUpdate();
                List infos = u.getConditionalPermissionInfos();
                infos.clear();
                infos.add(
                        cpa.newConditionalPermissionInfo(null,
                        new ConditionInfo[]{
                            new ConditionInfo(
                            BundleLocationCondition.class.getName(), new
String[]{"file:./Bundles/SignedBundleTest.jar"})
                        },
                        new PermissionInfo[]{
                            new
PermissionInfo(FilePermission.class.getName(), "<<ALL FILES>>",
"read,write,delete"),
                            new
PermissionInfo(NetPermission.class.getName(), "*", "")
                        },
                        ConditionalPermissionInfo.DENY));
                u.commit();

When I try to run it, it throws java.lang.NullPointerException for all the
Bundles.

-- 
View this message in context: 
http://old.nabble.com/Embedding-Felix-Security-tp32550700p32550700.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to