|
OSGi™ Service Platform Release 4 Version 4.2 |
||||||||
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. This permission has only a single action: CONFIGURE.
Field Summary | |
---|---|
static java.lang.String |
CONFIGURE
The action string configure . |
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
configure
.
Constructor Detail |
---|
public ConfigurationPermission(java.lang.String name, java.lang.String actions)
name
- Name must be "*".actions
- configure
(canonical order).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
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™ Service Platform Release 4 Version 4.2 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |