public final class AdminPermission
extends java.security.BasicPermission
 Action             Methods
 class              Bundle.loadClass
 execute            Bundle.start
                    Bundle.stop
                    BundleStartLevel.setStartLevel
 extensionLifecycle BundleContext.installBundle for extension bundles
                    Bundle.update for extension bundles
                    Bundle.uninstall for extension bundles
 lifecycle          BundleContext.installBundle
                    Bundle.update
                    Bundle.uninstall
 listener           BundleContext.addBundleListener for
                      SynchronousBundleListener
                    BundleContext.removeBundleListener for
                      SynchronousBundleListener
 metadata           Bundle.getHeaders
                    Bundle.getLocation
 resolve            FrameworkWiring.refreshBundles
                    FrameworkWiring.resolveBundles
 resource           Bundle.getResource
                    Bundle.getResources
                    Bundle.getEntry
                    Bundle.getEntryPaths
                    Bundle.findEntries
                    Bundle resource/entry URL creation
 startlevel         FrameworkStartLevel.setStartLevel
                    FrameworkStartLevel.setInitialBundleStartLevel
 context            Bundle.getBundleContext
 weave              WovenClass.getBytes
                    WovenClass.setBytes
                    WovenClass.getDynamicImports for modification
 
 
 
 The special action "*" will represent all actions. The
 resolve action is implied by the class, execute and
 resource actions.
 
The name of this permission is a filter expression. The filter gives access to the following attributes:
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS
The action string  
class. | 
static java.lang.String | 
CONTEXT
The action string  
context. | 
static java.lang.String | 
EXECUTE
The action string  
execute. | 
static java.lang.String | 
EXTENSIONLIFECYCLE
The action string  
extensionLifecycle. | 
static java.lang.String | 
LIFECYCLE
The action string  
lifecycle. | 
static java.lang.String | 
LISTENER
The action string  
listener. | 
static java.lang.String | 
METADATA
The action string  
metadata. | 
static java.lang.String | 
RESOLVE
The action string  
resolve. | 
static java.lang.String | 
RESOURCE
The action string  
resource. | 
static java.lang.String | 
STARTLEVEL
The action string  
startlevel. | 
static java.lang.String | 
WEAVE
The action string  
weave. | 
| Constructor and Description | 
|---|
AdminPermission()
Creates a new  
AdminPermission object that matches all bundles and
 has all actions. | 
AdminPermission(Bundle bundle,
               java.lang.String actions)
Creates a new requested  
AdminPermission object to be used by the
 code that must perform checkPermission. | 
AdminPermission(java.lang.String filter,
               java.lang.String actions)
Create a new AdminPermission. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(java.lang.Object obj)
Determines the equality of two  
AdminPermission objects. | 
java.lang.String | 
getActions()
Returns the canonical string representation of the
  
AdminPermission actions. | 
int | 
hashCode()
Returns the hash code value for this object. 
 | 
boolean | 
implies(java.security.Permission p)
Determines if the specified permission is implied by this object. 
 | 
java.security.PermissionCollection | 
newPermissionCollection()
Returns a new  
PermissionCollection object suitable for storing
 AdminPermissions. | 
public static final java.lang.String CLASS
class. The class action implies the
 resolve action.public static final java.lang.String EXECUTE
execute. The execute action implies the
 resolve action.public static final java.lang.String EXTENSIONLIFECYCLE
extensionLifecycle.public static final java.lang.String LIFECYCLE
lifecycle.public static final java.lang.String LISTENER
listener.public static final java.lang.String METADATA
metadata.public static final java.lang.String RESOLVE
resolve. The resolve action is implied
 by the class, execute and resource actions.public static final java.lang.String RESOURCE
resource. The resource action implies
 the resolve action.public static final java.lang.String STARTLEVEL
startlevel.public static final java.lang.String CONTEXT
context.public static final java.lang.String WEAVE
weave.public AdminPermission()
AdminPermission object that matches all bundles and
 has all actions. Equivalent to AdminPermission("*","*");public AdminPermission(java.lang.String filter,
                       java.lang.String actions)
Examples:
(signer=\*,o=ACME,c=US) (&(signer=\*,o=ACME,c=US)(name=com.acme.*) (location=http://www.acme.com/bundles/*)) (id>=1)
When a signer key is used within the filter expression the signer value must escape the special filter chars ('*', '(', ')').
Null arguments are equivalent to "*".
filter - A filter expression that can use signer, location, id, and
        name keys. A value of "*" or null matches all
        bundle. Filter attribute names are processed in a case sensitive
        manner.actions - class, execute, extensionLifecycle
        , lifecycle, listener, metadata,
        resolve , resource, startlevel,
        context or weave. A value of "*" or null
        indicates all actions.java.lang.IllegalArgumentException - If the filter has an invalid syntax.public AdminPermission(Bundle bundle, java.lang.String actions)
AdminPermission object to be used by the
 code that must perform checkPermission. AdminPermission
 objects created with this constructor cannot be added to an
 AdminPermission permission collection.bundle - A bundle.actions - class, execute, extensionLifecycle
        , lifecycle, listener, metadata,
        resolve , resource, startlevel,
        context, weave. A value of "*" or null
        indicates all actions.public boolean implies(java.security.Permission p)
 This method returns true if the specified permission is an
 AdminPermission AND
 
 Special case: if the specified permission was constructed with "*"
 filter, then this method returns true if this object's filter is
 "*" and this object's actions include all of the specified permission's
 actions
implies in class java.security.BasicPermissionp - The requested permission.true if the specified permission is implied by this
         object; false otherwise.public java.lang.String getActions()
AdminPermission actions.
 
 
 Always returns present AdminPermission actions in the following
 order: class, execute, extensionLifecycle,
 lifecycle, listener, metadata, resolve,
 resource, startlevel, context, weave.
getActions in class java.security.BasicPermissionAdminPermission
         actions.public java.security.PermissionCollection newPermissionCollection()
PermissionCollection object suitable for storing
 AdminPermissions.newPermissionCollection in class java.security.BasicPermissionPermissionCollection object.public boolean equals(java.lang.Object obj)
AdminPermission objects.equals in class java.security.BasicPermissionobj - The object being compared for equality with this object.true if obj is equivalent to this
         AdminPermission; false otherwise.public int hashCode()
hashCode in class java.security.BasicPermissionCopyright © OSGi Alliance (2000, 2020). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0