>From my understanding OSGi security 

i.e. tow instance of the same class MyClass which is part of bundle MyBundle
share the same security conditions defined for bundle MyBundle. So if I have
the following:

[code]
MyClass a = new MyClass("dirA");
MyClass b = new MyClass("dirB"); 
[/code]

These two classes will share the same security permission when for example
using this:

[code]
ALLOW {
  [org.osgi.service.condpermadmin.BundleLocationCondition "MyBundle.jar"]
  ( java.io.FilePermission "dirA" "read,write" )
  ( java.io.FilePermission "dirB" "read,write" )
} "MyCheck"
[/code]

However what if I want to make sure that MyClass instance "A" never access
"dirB" and instance "B" never access "dirA".

Is there a way how this is possible without actually packaging MyClass in
two different bundles? (obviously using different symbolic names, etc for
each bundle)?



--
View this message in context: 
http://apache-felix.18485.x6.nabble.com/Is-instance-based-security-possible-tp5016405.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