java.util
public final class PropertyPermission extends BasicPermission
System.getProperty
.System.setProperty
.Since: 1.2
See Also: Permission BasicPermission SecurityManager
UNKNOWN: updated to 1.4
Constructor Summary | |
---|---|
PropertyPermission(String name, String actions)
Constructs a PropertyPermission with the specified property. |
Method Summary | |
---|---|
boolean | equals(Object obj)
Check to see whether this object is the same as another
PropertyPermission object; this is true if it has the same name and
actions.
|
String | getActions()
Returns the action string. |
int | hashCode()
Returns the hash code for this permission. |
boolean | implies(Permission p)
Check if this permission implies p. |
PermissionCollection | newPermissionCollection()
Returns a permission collection suitable to take
PropertyPermission objects.
|
Parameters: name the name of the property actions the action string
Throws: NullPointerException if name is null IllegalArgumentException if name string contains an illegal wildcard or actions string contains an illegal action (this includes a null actions string)
Parameters: obj the other object
Returns: true if the two are equivalent
Returns: one of "read", "write", or "read,write"
getName().hashCode()
.
Returns: the hash code
java.*
implies java.home
Parameters: p the permission to check
Returns: true if this permission implies p
Returns: a new empty PermissionCollection