|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.security.Permission
|
+--com.sap.security.api.permissions.NamePermission
The NamePermission class extends the Permission class, and can be used as the base class for permissions that want to follow the same (simple) naming convention as NamePermission.
The name for a NamePermission is the name of the given permission (for example, "Admin", "test", ...). There's no hierarchical name property.
The action string (inherited from Permission) is unused. Thus, NamePermission is commonly used as the base class for "named" permissions (ones that contain a name but no actions list; you either have the named permission or you don't.) Subclasses may implement actions on top of NamePermission, if desired.
Permission, Serialized Form| Constructor Summary | |
NamePermission(java.lang.String name)
Creates a new NamePermission with the specified name. |
|
NamePermission(java.lang.String name,
java.lang.String actions)
Creates a new NamePermission object with the specified name. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two NamePermission 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. |
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 |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NamePermission(java.lang.String name)
name - the name of the NamePermission.
public NamePermission(java.lang.String name,
java.lang.String actions)
name - the name of the NamePermission.actions - ignored.| Method Detail |
public boolean implies(java.security.Permission p)
More specifically, this method returns true if:
implies in class java.security.Permissionp - the permission to check against.public boolean equals(java.lang.Object obj)
equals in class java.security.Permissionobj - the object we are testing for equality with this object.public int hashCode()
getName().hashCode(), where getName is
from the Permission superclass.hashCode in class java.security.Permissionpublic java.lang.String getActions()
getActions in class java.security.Permission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||