|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.security.Permission
oracle.security.jps.service.policystore.RoleAdminPermission
public final class RoleAdminPermission
The grantee of this permission is further granted the right to grant/revoke the target role.
| Nested Class Summary | |
|---|---|
static class |
RoleAdminPermission.RoleAdminActionRepresents all valid actions supported by RoleAdminPermission |
| Field Summary | |
|---|---|
static java.lang.String |
MAS |
| Constructor Summary | |
|---|---|
RoleAdminPermission(java.lang.String rolename) |
|
RoleAdminPermission(java.lang.String rolename, java.lang.String actions)Construct an instance of a RoleAdminPermission. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)Checks two Permission objects for equality. |
java.lang.String |
getActions()Returns the actions as a String. |
int |
hashCode()Returns the hash code value for this Permission object. |
boolean |
implies(java.security.Permission permission)Checks if the specified permission's actions are "implied by" this object's actions. |
boolean |
implies(java.security.Permission permission, boolean exactMatch)Checks if the specified permission's actions are "implied by" this object's actions. |
java.security.PermissionCollection |
newPermissionCollection()Returns a PermissionCollection. |
java.lang.String |
toString() |
| Methods inherited from class java.security.Permission |
|---|
checkGuard, getName |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MAS
| Constructor Detail |
|---|
public RoleAdminPermission(java.lang.String rolename)
throws PolicyStoreException
PolicyStoreException
public RoleAdminPermission(java.lang.String rolename,
java.lang.String actions)
throws PolicyStoreException
rolename -actions -PolicyStoreException| Method Detail |
|---|
public java.security.PermissionCollection newPermissionCollection()
newPermissionCollection in class java.security.Permissionpublic boolean implies(java.security.Permission permission)
This must be implemented by subclasses of Permission, as they are the only ones that can impose semantics on a Permission object.
The implies method is used by the AccessController to determine whether or not a requested permission is implied by another permission that is known to be valid in the current execution context.
implies in class java.security.Permissionpermission - the permission to check against.
public boolean implies(java.security.Permission permission,
boolean exactMatch)
This must be implemented by subclasses of Permission, as they are the only ones that can impose semantics on a Permission object.
The implies method is used by the AccessController to determine whether or not a requested permission is implied by another permission that is known to be valid in the current execution context.
permission - the permission to check against.public boolean equals(java.lang.Object obj)
Do not use the equals method for making access control decisions; use the implies method.
equals in class java.security.Permissionobj - the object we are testing for equality with this object.public int hashCode()
The required hashCode behavior for Permission Objects is the following:
hashCode method must consistently return the same integer. This integer need not remain consistent from one execution of an application to another execution of the same application.equals method, then calling the hashCode method on each of the two Permission objects must produce the same integer result.hashCode in class java.security.Permissionpublic java.lang.String getActions()
perm1 = new FilePermission(p1,"read,write"); perm2 = new FilePermission(p2,"write,read");
both return "read,write" when the getActions method is invoked.
getActions in class java.security.Permissionpublic java.lang.String toString()
toString in class java.security.Permission
|
Oracle Fusion Middleware Java API Reference for Oracle Platform Security Services 11g Release 1 (11.1.1) E14650-06 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||