|
||||||||||
| 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.WSSecurityMechsPermission
This class is for service security mechanism permissions.
You have to specify the name of web service endpoint path. The name is required, but if you set it to "*", it is handled as a permission to all web service endpoints.
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 | |
WSSecurityMechsPermission(java.lang.String name)
Creates a new WSSecurityMechsPermission object with the specified name. |
|
WSSecurityMechsPermission(java.lang.String name,
int actionMask)
Creates a new WSSecurityMechsPermission object with the specified name. |
|
WSSecurityMechsPermission(java.lang.String name,
java.lang.String actions)
Creates a new WSSecurityMechsPermission object with the specified name. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two WSSecurityMechsPermission 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 WSSecurityMechsPermission object "implies" the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing WSSecurityMechsPermission 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 WSSecurityMechsPermission(java.lang.String name)
ALL.
name - the name of the WSSecurityMechsPermission (name of the web service endpoint), cannot be null (, but can be WSManagePermission.ALL_NAMES).
public WSSecurityMechsPermission(java.lang.String name,
java.lang.String actions)
name - the name of the WSSecurityMechsPermission (name of the web service endpoint), 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 WSSecurityMechsPermission(java.lang.String name,
int actionMask)
name - the name of the WSSecurityMechsPermission (name of the web service endpoint), 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 WSManagePermissionp - 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 WSManagePermissionobj - 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 WSManagePermissionpublic java.lang.String getActions()
getActions
will return the string "get,set".
getActions in class WSManagePermissionpublic java.security.PermissionCollection newPermissionCollection()
newPermissionCollection in class WSManagePermission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||