|
Oracle Containers for J2EE Security Java API Reference 10g Release 3 (10.1.3.1.0) B32115-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. <p/> Given a Permission p, the grantee of AdminPermission(p) is granted the right to: <p/>
<p/> For examples: <p/> p = java.io.FilePermission("/home/scott/-","read,write"); <p/> if grantee SCOTT is granted AdminPermission(p),
then SCOTT is granted the following rights: <p/>
<p/> Notes: <p/>
Constructor Summary | |
AdminPermission(java.security.Permission p) Creates a new AdminPermission instance. |
|
AdminPermission(java.lang.String name) Create a new AdminPermission instance. |
|
AdminPermission(java.lang.String name, java.lang.String actions) Create a new AdminPermission instance. |
Method Summary | |
boolean |
equals(java.lang.Object o) Checks two AdminPermission objects for equality. |
java.lang.String |
getActions() Returns the canonical string representation of the actions, which currently is the empty string "", since there are no actions for an AdminPermission. |
java.security.Permission |
getEmbeddedPermission() Returns the permission whose administrative right is to be granted. |
int |
hashCode() Returns the hash code value for this object. |
boolean |
implies(java.security.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 |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AdminPermission(java.lang.String name)
name
- the encoded permission string Note that the encoded permission cannot be an AdminPermission instance.public AdminPermission(java.lang.String name, java.lang.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(java.security.Permission p)
Method Detail |
public java.lang.String getActions()
public int hashCode()
getName().hashCode()
, where getName
is from the Permission superclass.public boolean equals(java.lang.Object o)
public java.security.Permission getEmbeddedPermission()
public boolean implies(java.security.Permission p)
More specifically, this method returns true if:
p
- the permission to check against.
|
Oracle Containers for J2EE Security Java API Reference 10g Release 3 (10.1.3.1.0) B32115-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |