Class LocalPermissions
- java.lang.Object
-
- org.apache.felix.framework.security.util.LocalPermissions
-
public final class LocalPermissions extends java.lang.Object
A cache for local permissions. Local permissions are read from a given bundle and cached for later lookup. See core spec 9.2.1.
-
-
Constructor Summary
Constructors Constructor Description LocalPermissions(Permissions permissions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
implies(org.apache.felix.framework.cache.Content content, org.osgi.framework.Bundle bundle, java.security.Permission permission)
Return true in case that the given permission is implied by the local permissions of the given bundle or if there are none otherwise, false.
-
-
-
Constructor Detail
-
LocalPermissions
public LocalPermissions(Permissions permissions) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
implies
public boolean implies(org.apache.felix.framework.cache.Content content, org.osgi.framework.Bundle bundle, java.security.Permission permission)
Return true in case that the given permission is implied by the local permissions of the given bundle or if there are none otherwise, false. See core spec 9.2.1.- Parameters:
root
- the root to use for cacheing as a keyloader
- the loader to get the content of the bundle frombundle
- the bundle in quesitonpermission
- the permission to check- Returns:
- true if implied by local permissions.
-
-