|
||||||||||
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.PStorePermission
This class is intended for protected store permissions.
The name is required, possible values are:
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", "modify". 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, modify). |
static int |
GET
Enable action. |
static int |
MODIFY
Disable action. |
Constructor Summary | |
PStorePermission(java.lang.String name,
int actionMask)
Creates a new PStorePermission object with the specified name. |
|
PStorePermission(java.lang.String name,
java.lang.String actions)
Creates a new PStorePermission object with the specified name. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two PStorePermission 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 PStorePermission object "implies" the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing PStorePermission 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 int GET
public static final int MODIFY
public static final int ALL
Constructor Detail |
public PStorePermission(java.lang.String name, java.lang.String actions)
name
- the name of the PStorePermission (name of the service), cannot be null
.actions
- the actions string, can be null
or empty string , then it means "all actions possible".public PStorePermission(java.lang.String name, int actionMask)
name
- the name of the PStorePermission (name of the service), cannot be null.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 |