|
||||||||||
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.WSBManagePermission
This class is a base for all WASP management permissions focused on web service bindings.
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 |
WSBManagePermission()
Creates a new WSBManagePermission object with null name and null actions. |
|
WSBManagePermission(java.lang.String name)
Creates a new WSVManagePermission object with the specified name. |
|
WSBManagePermission(java.lang.String name,
int actionMask)
Creates a new WSBManagePermission object with the specified name. |
|
WSBManagePermission(java.lang.String name,
java.lang.String actions)
Creates a new WSBManagePermission object with the specified name and actions. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two WSBManagePermission 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 WSBManagePermission object "implies" the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing WSBManagePermission objects. |
Methods inherited from class java.security.Permission |
checkGuard, getName, toString |
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 WSBManagePermission()
null
name and null
actions.
public WSBManagePermission(java.lang.String name)
name
- the name of the WSManagePermission, cannot be null (, but can be ALL_NAMES
).public WSBManagePermission(java.lang.String name, java.lang.String actions)
name
- the name of the WSBManagePermission (name of the service binding), 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 WSBManagePermission(java.lang.String name, int actionMask)
name
- the name of the WSBManagePermission , cannot be null (, but can be ALL_NAMES
).actionMask
- composed out of
Method Detail |
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 |