public final class PropertyPermission extends BasicPermission
System.getProperty.System.setProperty.Permission,
BasicPermission,
SecurityManager,
Serialized Form| Constructor and Description |
|---|
PropertyPermission(String name,
String actions)
Constructs a PropertyPermission with the specified property.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
checkGuard, getName, toStringpublic PropertyPermission(String name, String actions)
name - the name of the propertyactions - the action stringNullPointerException - if name is nullIllegalArgumentException - if name string contains an
illegal wildcard or actions string contains an illegal action
(this includes a null actions string)public boolean implies(Permission p)
java.* implies java.home implies in class BasicPermissionp - the permission to checkpublic boolean equals(Object obj)
equals in class BasicPermissionobj - the other objectObject.hashCode()public int hashCode()
getName().hashCode().hashCode in class BasicPermissionObject.equals(Object),
System.identityHashCode(Object)public String getActions()
getActions in class BasicPermissionpublic PermissionCollection newPermissionCollection()
newPermissionCollection in class BasicPermission