org.systinet.security.perm
Class WASPDeployPermission

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

public final class WASPDeployPermission
extends WSManagePermission

Permission that allows to deploy packages into WASP.

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

Field Summary
protected  int mask
           
static int MODULE
          This permission name allows deployment of WASP modules
static int TRANSPORT
          This permission name allows deployment of WASP transports
static int WS
          The permission, which mask accords to this mask, enables deployment of web services and other stuff, except transports and modules.
 
Fields inherited from class org.systinet.security.perm.WSManagePermission
ALL, ALL_NAMES, GET, SET
 
Constructor Summary
WASPDeployPermission()
          Constructor with no permission name "ws" (default value) and no permission actions.
WASPDeployPermission(int nameMask)
          Creates a new WASPDeployPermission object with the specified name mask, which is an or-ed flag of public static final int values present herein.
WASPDeployPermission(java.lang.String name)
          Constructor which takes one parameter - the name of the permission.
 
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 getNameMask()
          Gets the name mask, which is composed out of names.
 int hashCode()
          Returns the hash code value for this object.
 boolean implies(java.security.Permission permission)
          This permission implies instances of WASPDeployPermission which have rights equal or weaker to this permission.
 java.security.PermissionCollection newPermissionCollection()
          Returns a new PermissionCollection object for storing WASPDeployPermission 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
 

Field Detail

MODULE

public static final int MODULE
This permission name allows deployment of WASP modules

See Also:
Constant Field Values

WS

public static final int WS
The permission, which mask accords to this mask, enables deployment of web services and other stuff, except transports and modules. It the default value of this permission name.

See Also:
Constant Field Values

TRANSPORT

public static final int TRANSPORT
This permission name allows deployment of WASP transports

See Also:
Constant Field Values

mask

protected transient int mask
Constructor Detail

WASPDeployPermission

public WASPDeployPermission()
Constructor with no permission name "ws" (default value) and no permission actions.


WASPDeployPermission

public WASPDeployPermission(java.lang.String name)
Constructor which takes one parameter - the name of the permission. The name "module" allows deployment of WASP modules, "transport" allows deployment of WASP transports, "ws" allows deployment of everything except transports and modules. It has the same meaning as the permission created without the name.


WASPDeployPermission

public WASPDeployPermission(int nameMask)
Creates a new WASPDeployPermission object with the specified name mask, which is an or-ed flag of public static final int values present herein.

Parameters:
nameMask - composed out of
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)
This permission implies instances of WASPDeployPermission which have rights equal or weaker to this permission.

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()
Returns the hash code value for this object. The hash code used is the hash code of this permissions name, that is, this.mask, where mask contains coded information about this permission.

Overrides:
hashCode in class WSManagePermission
Returns:
a hash code value for this object.

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 WASPDeployPermission objects. At most one WASPDeploy permission can be stored in this collection.

Overrides:
newPermissionCollection in class WSManagePermission
Returns:
a new WASPDeployPermissionCollection object suitable for storing WASPDeployPermission.

getNameMask

public int getNameMask()
Gets the name mask, which is composed out of names.

Returns:
nameMask composed out of or-ed