|
||||||||||
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.framework.AdminPermission
public final class AdminPermission
Indicates the caller's authority to perform lifecycle operations on or to get sensitive information about a bundle.
AdminPermission has no actions or target.
The hashCode() method of AdminPermission is inherited from java.security.BasicPermission. The hash code it returns is the hash code of the name "AdminPermission", which is always the same for all instances of AdminPermission.
Constructor Summary | |
---|---|
AdminPermission()
Creates a new AdminPermission object with its name set to "AdminPermission". |
|
AdminPermission(java.lang.String name,
java.lang.String actions)
Creates a new AdminPermission object for use by the Policy object to instantiate new Permission
objects. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Determines the equality of two AdminPermission objects. |
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. |
Methods inherited from class java.security.BasicPermission |
---|
getActions, hashCode |
Methods inherited from class java.security.Permission |
---|
checkGuard, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AdminPermission()
public AdminPermission(java.lang.String name, java.lang.String actions)
Policy
object to instantiate new Permission
objects.
name
- Ignored; always set to "AdminPermission".actions
- Ignored.Method Detail |
---|
public boolean implies(java.security.Permission p)
This method returns true if the specified permission is an instance of AdminPermission.
implies
in class java.security.BasicPermission
p
- The permission to interrogate.
public boolean equals(java.lang.Object obj)
Two AdminPermission objects are always equal.
equals
in class java.security.BasicPermission
obj
- The object being compared for equality with this object.
public java.security.PermissionCollection newPermissionCollection()
newPermissionCollection
in class java.security.BasicPermission
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |