|
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.realm.RealmPermission
A RealmPermission class is defined to represent permissions for a realm. It extends from java.security.Permission, thus can be used just like any regular Java permission. <p/> A RealmPermission consists of the name of the realm (also known as permission target name) and a set of "actions" specifying privileges applicable to that realm. The target name of a RealmPermission instance is the name of the realm in question. <p/> The individual action name is specific to the realm in question and are system-defined. <p/>
Permission Action | the Permission Action Allows |
createRealm | Create realms |
dropRealm | Drop realms |
createUser | Create users in the target realm. |
dropUser | Drop users in the target realm. |
createRole | Create roles in the target realm. |
dropRole | Drop roles in the target realm. |
modifyRole | Modify roles in the target realm. |
grantRole | Grant roles in the target realm. |
revokeRole | Revoke roles from the target realm |
Constructor Summary | |
RealmPermission(java.lang.String realm, java.lang.String actions) Creates a RealmPermission instance with the specified actions. |
Method Summary | |
boolean |
equals(java.lang.Object obj) Checks two Permission objects for equality. |
java.lang.String |
getActions() Returns the actions of this permissioon as a string. |
int |
hashCode() Returns the hash code value for this object. |
boolean |
implies(java.security.Permission permission) Checks if the specified permission's actions are "implied by" this object's actions. |
java.lang.String |
toString() Returns String representation of this instance. |
Methods inherited from class java.security.Permission |
checkGuard, getName, newPermissionCollection |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RealmPermission(java.lang.String realm, java.lang.String actions)
realm
- - the name of the realmactions
- - the action stringMethod Detail |
public java.lang.String getActions()
public boolean equals(java.lang.Object obj)
obj
- - the object we are testing for equality with this object.public int hashCode()
public java.lang.String toString()
public boolean implies(java.security.Permission permission)
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.
|
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 |