Thanks!
I think I've gotten a little further. So I want to create a scenario where only
my signed bundles will be installed and running in the container.
So in one of my bundles, I create a couple permissions:
-BundleLocationCondition (like below) for system bundle AllPermission
-BundleLocationCondition for my bundle AllPermission
-BundleSignerCondition that says only bundles signed with CN=ROSHAN,* have
AllPermission
Do I have to add another BundleSignerCondition, not sure how, but that says any
other bundles have no permission?
Roshan
On Jun 19, 2010, at 3:34 AM, Goichon Francois wrote:
> final ConditionalPermissionUpdate condPermUpdate =
> cpa.newConditionalPermissionUpdate();
> final List<ConditionalPermissionInfo> permlist =
> condPermUpdate.getConditionalPermissionInfos();
>
> permlist.add(cpa.newConditionalPermissionInfo(null,
> new ConditionInfo[]{
> new
> ConditionInfo(BundleLocationCondition.class.getName(),
> new String[]{
>
> context.getBundle(0).getLocation()
> }
> )
> },
> new PermissionInfo[]{
> new
> PermissionInfo(AllPermission.class.getName(),"", "")
> },
> "allow"));
Roshan Punnoose
[email protected]
Proteus Technologies
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]