Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
java.lang.Object | +----java.security.Permission | +----java.security.BasicPermission | +----java.util.PropertyPermission
The name is the name of the property ("java.home", "os.name", etc). The naming convention follows the hierarchical property naming convention. Also, an asterisk may appear at the end of the name, following a ".", or by itself, to signify a wildcard match. For example: "java.*" or "*" is valid, "*java" or "a*b" is not valid.
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 "read" and "write". Their meaning is defined as follows:
System.getProperty
to
be called.
System.setProperty
to
be called.
The actions string is converted to lowercase before processing.
Constructor Summary | |
PropertyPermission(String name,
String actions)
|
Method Summary | |
boolean | equals(Object obj)
|
String | getActions()
|
int | hashCode()
|
boolean | implies(Permission p)
|
PermissionCollection | newPermissionCollection()
|
Methods inherited from class java.security.BasicPermission |
equals, getActions, hashCode, implies, newPermissionCollection |
Methods inherited from class java.security.Permission |
checkGuard, equals, getActions, getName, hashCode, implies, newPermissionCollection, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyPermission(String name, String actions)
name
- the name of the PropertyPermission.
actions
- the actions string.
Method Detail |
public boolean implies(Permission p)
More specifically, this method returns true if:
p
- the permission to check against.
public boolean equals(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 String getActions()
getActions
will return the string "read,write".public PermissionCollection newPermissionCollection()
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |