org.systinet.security.perm
Class WSManageACLPermission

java.lang.Object
  extended byjava.security.Permission
      extended byorg.systinet.security.perm.WSManagePermission
          extended byorg.systinet.security.perm.WSManageACLPermission
All Implemented Interfaces:
java.security.Guard, java.io.Serializable

public final class WSManageACLPermission
extends WSManagePermission

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.

Since:
4.0
See Also:
Serialized Form
Component:
Security-Specific

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

WSManageACLPermission

public WSManageACLPermission()
Instantiation through this constructor is used to grant "manage ACL" on every service. Constructor with no permission name and no permission actions.


WSManageACLPermission

public WSManageACLPermission(java.lang.String serviceName)
Instantiation through this constructor is used to grant get on specified service. Constructor with permission name set to service name and no permission actions.

Parameters:
serviceName - name of the package
Method Detail

toString

public java.lang.String toString()
Overriden to return complete description of this permission.

Overrides:
toString in class WSManagePermission
Returns:
description of this

getActions

public java.lang.String getActions()
No actions supported by this permission. Null value is returned.

Overrides:
getActions in class WSManagePermission
Returns:
null

implies

public boolean implies(java.security.Permission permission)
A permissions is implied from this permission if given permission is instance of WSManageACLPermission and

Overrides:
implies in class WSManagePermission
Parameters:
permission - the permission to check against.
Returns:
true if the specified permission is implied by this object, false if not.

hashCode

public int hashCode()
Always return the value getName().hashCode() or 4 if getName() returns null.

Overrides:
hashCode in class WSManagePermission
Returns:
hashcode of this permission

equals

public boolean equals(java.lang.Object obj)
Checks two Permission objects for equality.

Overrides:
equals in class WSManagePermission
Parameters:
obj - the object we are testing for equality with this object
Returns:
true if both Permission objects are equivalent.

newPermissionCollection

public java.security.PermissionCollection newPermissionCollection()
Returns a new PermissionCollection object for storing WSManageACLPermission objects. At most one WSManageACLPermission permission with null name can be stored in this collection.

Overrides:
newPermissionCollection in class WSManagePermission
Returns:
a new WSManageACLPermissionCollection object suitable for storing WSManageACLPermission.