|
||||||||||
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
This class is a base for all WASP management permissions focused on web services.
The name of this permission is application specific. The name is required, but if you set it to "*".
The actions to be granted are passed to the constructor in a string containing a list of zero or more comma-separated keywords. The possible keywords are "get", "set". The action string is optional, if it is not present, all actions are granted. Their meanings are application specific.
The actions string is converted to lowercase before processing.
Field Summary | |
static int |
ALL
All actions (get, set). |
static java.lang.String |
ALL_NAMES
Match string for all names("*" by default) |
static int |
GET
Enable action. |
static int |
SET
Disable action. |
Constructor Summary | |
protected |
WSManagePermission()
Creates a new WSManagePermission object with null name and null actions. |
|
WSManagePermission(java.lang.String name)
Creates a new WSManagePermission object with the specified name. |
|
WSManagePermission(java.lang.String name,
int actionMask)
Creates a new WSManagePermission object with the specified name. |
|
WSManagePermission(java.lang.String name,
java.lang.String actions)
Creates a new WSManagePermission object with the specified name and actions. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two WSManagePermission objects for equality. |
java.lang.String |
getActions()
Returns the "canonical string representation" of the actions. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(java.security.Permission p)
Checks if this WSManagePermission object "implies" the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing WSManagePermission 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 |
public static final java.lang.String ALL_NAMES
public static final int GET
public static final int SET
public static final int ALL
Constructor Detail |
protected WSManagePermission()
null
name and null
actions.
public WSManagePermission(java.lang.String name)
name
- the name of the WSManagePermission, cannot be null (, but can be ALL_NAMES
).public WSManagePermission(java.lang.String name, java.lang.String actions)
name
- the name of the WSManagePermission (name of the service), cannot be null (, but can be ALL_NAMES
).actions
- the actions string, can be null
or empty string , then it means "all actions possible".public WSManagePermission(java.lang.String name, int actionMask)
name
- the name of the WSManagePermission , cannot be null (, but can be ALL_NAMES
).actionMask
- composed out of
Method Detail |
public java.lang.String toString()
public boolean implies(java.security.Permission p)
More specifically, this method returns true if:
p
- the permission to check against.
true
if the specified permission is implied by this object,
false
if not.public boolean equals(java.lang.Object obj)
obj
- the object we are testing for equality with this object.
public int hashCode()
getName().hashCode()
, where getName
is
from the Permission superclass.
public java.lang.String getActions()
getActions
will return the string "get,set".
public java.security.PermissionCollection newPermissionCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |