|
||||||||||
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.WSManageACLPermission
Permission that allows to manage ACLs for given WASP service. The name of the permission can be "*" to match all services. This permission allows to set WSInvokePermission permission to given/all service(s). If it is set, the "manage ACL" action is allowed only to given service name, otherwise it allows to manage ACLs of every service.
Field Summary |
Fields inherited from class org.systinet.security.perm.WSManagePermission |
ALL, ALL_NAMES, GET, SET |
Constructor Summary | |
WSManageACLPermission()
Instantiation through this constructor is used to grant "manage ACL" on every service. |
|
WSManageACLPermission(java.lang.String serviceName)
Instantiation through this constructor is used to grant get on specified service. |
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 4 if getName() returns null . |
boolean |
implies(java.security.Permission permission)
A permissions is implied from this permission if given permission is instance of WSManageACLPermission and this.getName() == null , i.e. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing WSManageACLPermission 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 WSManageACLPermission()
public WSManageACLPermission(java.lang.String serviceName)
serviceName
- name of the packageMethod Detail |
public java.lang.String toString()
toString
in class WSManagePermission
public java.lang.String getActions()
getActions
in class WSManagePermission
null
public 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 WSManagePermission
permission
- 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 WSManagePermission
public boolean equals(java.lang.Object obj)
equals
in class WSManagePermission
obj
- 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 |