|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission java.security.BasicPermission org.osgi.service.cm.ConfigurationPermission
public final class ConfigurationPermission
Indicates a bundle's authority to configure bundles or be updated by Configuration Admin.
Field Summary | |
---|---|
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 Summary | |
---|---|
ConfigurationPermission(java.lang.String name,
java.lang.String actions)
Create a new ConfigurationPermission. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.security.Permission |
---|
checkGuard, getName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIGURE
public static final java.lang.String TARGET
Constructor Detail |
---|
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
(case insensitive).Method Detail |
---|
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"
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.Permission
PermissionCollection
object.
|
OSGi™ Enterprise Release 5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |