|
||||||||||
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.WSConfigPermission
This class is for service configuration permissions.
The name is required, but if you set it to "*", it is handled as a permission to all services.
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 meaning is defined as follows:
The actions string is converted to lowercase before processing.
Field Summary | |
static int |
ALL
All actions (get, set). |
static int |
GET
Enable action. |
static int |
SET
Disable action. |
Fields inherited from class org.systinet.security.perm.WSManagePermission |
ALL_NAMES |
Constructor Summary | |
WSConfigPermission(java.lang.String name,
int actionMask)
Creates a new WSConfigPermission object with the specified name. |
|
WSConfigPermission(java.lang.String name,
java.lang.String actions)
Creates a new WSConfigPermission object with the specified name. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two WSConfigPermission 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 WSConfigPermission object "implies" the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing WSConfigPermission objects. |
Methods inherited from class org.systinet.security.perm.WSManagePermission |
toString |
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 int GET
public static final int SET
public static final int ALL
Constructor Detail |
public WSConfigPermission(java.lang.String name, java.lang.String actions)
name
- the name of the WSConfigPermission (name of the service), cannot be null (, but can be WSManagePermission.ALL_NAMES
).actions
- the actions string, can be null
or empty string , then it means "all actions possible".public WSConfigPermission(java.lang.String name, int actionMask)
name
- the name of the WSConfigPermission (name of the service), cannot be null (, but can be WSManagePermission.ALL_NAMES
).actionMask
- composed out of
Method Detail |
public boolean implies(java.security.Permission p)
More specifically, this method returns true if:
implies
in class WSManagePermission
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)
equals
in class WSManagePermission
obj
- the object we are testing for equality with this object.
public int hashCode()
getName().hashCode()
, where getName
is
from the Permission superclass.
hashCode
in class WSManagePermission
public java.lang.String getActions()
getActions
will return the string "get,set".
getActions
in class WSManagePermission
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 |