org.apache.felix.framework.security.util
Class Permissions
java.lang.Object
org.apache.felix.framework.security.util.Permissions
public final class Permissions
- extends java.lang.Object
A permission cache that uses permisssion infos as keys. Permission are
created from the parent classloader or any exported package.
|
Constructor Summary |
Permissions(org.osgi.framework.BundleContext context,
org.apache.felix.framework.util.SecureAction action)
|
|
Method Summary |
org.osgi.service.permissionadmin.PermissionInfo[] |
getImplicit(org.osgi.framework.Bundle bundle)
|
Permissions |
getPermissions(org.osgi.service.permissionadmin.PermissionInfo[] permissionInfos)
|
boolean |
implies(java.security.Permission target,
org.osgi.framework.Bundle bundle)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL_PERMISSION
public static final java.security.AllPermission ALL_PERMISSION
Permissions
public Permissions(org.osgi.framework.BundleContext context,
org.apache.felix.framework.util.SecureAction action)
getImplicit
public org.osgi.service.permissionadmin.PermissionInfo[] getImplicit(org.osgi.framework.Bundle bundle)
getPermissions
public Permissions getPermissions(org.osgi.service.permissionadmin.PermissionInfo[] permissionInfos)
implies
public boolean implies(java.security.Permission target,
org.osgi.framework.Bundle bundle)
- Parameters:
target - the permission to be impliedbundle - if not null then allow implicit permissions like file access
to local data area
- Returns:
- true if the permission is implied by this permissions object.
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.