|
Oracle9iAS JAAS 9.0.2.0.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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.
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.
The individual action name is specific to the realm in question and are system-defined.
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(String realm,
String actions)
Creates a RealmPermission instance with the specified actions. |
Method Summary |
Type | Method |
---|---|
boolean |
equals(Object obj)
Checks two Permission objects for equality. |
String |
getActions()
Returns the actions of this permissioon as a string. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(Permission permission)
Checks if the specified permission's actions are "implied by" this object's actions. |
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 |
getClass, notify, notifyAll,
wait, wait, wait |
Constructor Detail |
public RealmPermission(String realm, String actions)
realm
- - the name of the realmactions
- - the action stringMethod Detail |
public String getActions()
getActions
in class Permission
public boolean equals(Object obj)
equals
in class Permission
obj
- - the object we are testing for equality with this object.public int hashCode()
hashCode
in class Permission
public String toString()
toString
in class Permission
public boolean implies(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.
implies
in class Permission
permission
- - the permission to check against.
|
Oracle9iAS JAAS 9.0.2.0.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |