|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
java.security.BasicPermission
java.util.PropertyPermission
public final class PropertyPermission
This class represents the permission to access and modify a property.
The name is the name of the property, e.g. xxx. You can also
use an asterisk "*" as described in BasicPermission.
The action string is a comma-separated list of keywords. There are
two possible actions:
System.getProperty
.System.setProperty
.
Permission
,
BasicPermission
,
SecurityManager
,
Serialized FormConstructor 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. |
Methods inherited from class java.security.Permission |
---|
checkGuard, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyPermission(String name, String actions)
name
- the name of the propertyactions
- the action string
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)Method Detail |
---|
public boolean implies(Permission p)
java.*
implies java.home
implies
in class BasicPermission
p
- the permission to check
public boolean equals(Object obj)
equals
in class BasicPermission
obj
- the other object
Object.hashCode()
public int hashCode()
getName().hashCode()
.
hashCode
in class BasicPermission
Object.equals(Object)
,
System.identityHashCode(Object)
public String getActions()
getActions
in class BasicPermission
public PermissionCollection newPermissionCollection()
newPermissionCollection
in class BasicPermission
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |