public final class ConfigurationPermission
extends java.security.BasicPermission
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE
Provides permission to set or remove an attribute on the configuration.
|
static java.lang.String |
CONFIGURE
Provides permission to create new configurations for other bundles as
well as manipulate them.
|
static java.lang.String |
TARGET
The permission to be updated, that is, act as a Managed Service or
Managed Service Factory.
|
Constructor and Description |
---|
ConfigurationPermission(java.lang.String name,
java.lang.String actions)
Create a new ConfigurationPermission.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines the equality of two
ConfigurationPermission objects. |
java.lang.String |
getActions()
Returns the canonical string representation of the
ConfigurationPermission actions. |
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(java.security.Permission p)
Determines if a
ConfigurationPermission object "implies" the
specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new
PermissionCollection object suitable for storing
ConfigurationPermission s. |
public static final java.lang.String CONFIGURE
public static final java.lang.String TARGET
public static final java.lang.String ATTRIBUTE
public ConfigurationPermission(java.lang.String name, java.lang.String actions)
name
- Name of the permission. Wildcards ('*'
) are allowed
in the name. During implies(Permission)
, the name is
matched to the requested permission using the substring
matching rules used by Filter
s.actions
- Comma separated list of CONFIGURE
,
TARGET
, ATTRIBUTE
(case insensitive).public boolean implies(java.security.Permission p)
ConfigurationPermission
object "implies" the
specified permission.implies
in class java.security.BasicPermission
p
- The target permission to check.true
if the specified permission is implied by this
object; false
otherwise.public boolean equals(java.lang.Object obj)
ConfigurationPermission
objects.
Two ConfigurationPermission
objects are equal.
equals
in class java.security.BasicPermission
obj
- The object being compared for equality with this object.true
if obj
is equivalent to this
ConfigurationPermission
; false
otherwise.public int hashCode()
hashCode
in class java.security.BasicPermission
public java.lang.String getActions()
ConfigurationPermission
actions.
Always returns present ConfigurationPermission
actions in the
following order: "configure", "target",
"attribute".
getActions
in class java.security.BasicPermission
ConfigurationPermission
actions.public java.security.PermissionCollection newPermissionCollection()
PermissionCollection
object suitable for storing
ConfigurationPermission
s.newPermissionCollection
in class java.security.BasicPermission
PermissionCollection
object.Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0