| 
JAAS Provider Java API Reference 10g (9.0.4.0.0) B10389-01  | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--java.security.Permission
        |
        +--oracle.security.jazn.policy.AdminPermission
This class represents the right to administer a permission.
Given a Permission p, the grantee of AdminPermission(p) is granted the right to:
For examples:
p = java.io.FilePermission("/home/scott/-","read,write");
if grantee SCOTT is granted AdminPermission(p),
 then SCOTT is granted the following rights:
Notes:
| Constructor Summary | |
AdminPermission(Permission p)Creates a new AdminPermission instance.  | |
AdminPermission(String name)Create a new AdminPermission instance.  | |
AdminPermission(String name, String actions)Create a new AdminPermission instance.  | |
| Method Summary | |
 boolean | 
equals(Object o)Checks two AdminPermission objects for equality.  | 
 String | 
getActions()Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for an AdminPermission.  | 
 Permission | 
getEmbeddedPermission()Returns the permission whose administrative right is to be granted.  | 
 int | 
hashCode()Returns the hash code value for this object.  | 
 boolean | 
implies(Permission p)Checks if the specified permission is "implied" by this object.  | 
| Methods inherited from class java.security.Permission | 
checkGuard, getName, newPermissionCollection, toString | 
| Methods inherited from class java.lang.Object | 
getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public AdminPermission(String name)
name - the encoded permission string Note that the encoded permission cannot be an AdminPermission instance.public AdminPermission(String name, String actions)
name - the encoded permission string Note that the encoded permission cannot be an AdminPermission instance.actions - the actions associated with this permission instance. This parameter is currently ignored.public AdminPermission(Permission p)
| Method Detail | 
public String getActions()
getActions in class Permissionpublic int hashCode()
getName().hashCode(), where getName is from the Permission superclass.hashCode in class Permissionpublic boolean equals(Object o)
equals in class Permissionpublic Permission getEmbeddedPermission()
public boolean implies(Permission p)
More specifically, this method returns true if:
implies in class Permissionp - the permission to check against. 
  | 
JAAS Provider Java API Reference 10g (9.0.4.0.0) B10389-01  | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||