|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
org.systinet.security.perm.WSManagePermission
org.systinet.security.perm.WASPGetPermission
Permission that allows to get package(s) from WASP. The name of the permission can be "*" to match all packages. If it is set, the get action is allowed only to given package name, otherwise it allows to get every package.
| Field Summary |
| Fields inherited from class org.systinet.security.perm.WSManagePermission |
ALL, ALL_NAMES, GET, SET |
| Constructor Summary | |
WASPGetPermission()
Instantiation through this constructor is used to grant get on every package. |
|
WASPGetPermission(java.lang.String packageName)
Instantiation through this constructor is used to grant get on specified package name. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two Permission objects for equality. |
java.lang.String |
getActions()
No actions supported by this permission. |
int |
hashCode()
Always return the value getName().hashCode() or 3 if getName() returns null. |
boolean |
implies(java.security.Permission permission)
A permissions is implied from this permission if given permission is instance of WASPGetPermission and this.getName() == null, i.e. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing WASPGetPermission objects. |
java.lang.String |
toString()
Overriden to return complete description of this permission. |
| Methods inherited from class java.security.Permission |
checkGuard, getName |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public WASPGetPermission()
public WASPGetPermission(java.lang.String packageName)
packageName - name of the package| Method Detail |
public java.lang.String toString()
toString in class WSManagePermissionpublic java.lang.String getActions()
getActions in class WSManagePermissionnullpublic boolean implies(java.security.Permission permission)
this.getName() == null, i.e. this permission allows to get every package; orthis.getName() != null && this.getName().equals(permission.getName())
implies in class WSManagePermissionpermission - the permission to check against.
true if the specified permission is implied by this object, false if not.public int hashCode()
null.
hashCode in class WSManagePermissionpublic boolean equals(java.lang.Object obj)
equals in class WSManagePermissionobj - the object we are testing for equality with this object
true if both Permission objects are equivalent.public java.security.PermissionCollection newPermissionCollection()
newPermissionCollection in class WSManagePermission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||