java.util
public
final
class
java.util.PropertyPermission
PropertyPermission objects represent permission to access system properties.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
public
PropertyPermission(String name, String actions)
Constructs a new instance of this class.
Parameters
name
| java.lang.String the (possibly wildcarded) name of the
property. |
actions
| java.lang.String the actions which are applicable to it.
|
Public Methods
public
boolean
equals(Object o)
Compares the argument to the receiver, and returns true if they represent
the
same object using a class specific comparison. In this
case, the receiver must be for the same property as the argument, and
must have the same actions.
Parameters
o
| the object to compare with this object |
Returns
true
if the object is the same as this object
false
if it is different from this object
public
String
getActions()
Returns the actions associated with the receiver. The result will be
either "read", "write", or "read,write".
Returns
- String the actions associated with the receiver.
public
int
hashCode()
Returns an integer hash code for the receiver. Any two objects which
answer
true
when passed to
equals
must
answer the same value for this method.
public
boolean
implies(Permission permission)
Indicates whether the argument permission is implied by the receiver.
Parameters
permission
| java.security.Permission the permission to check
|
Returns
- boolean
true
if the argument permission is implied
by the receiver, and false
if it is not.
Returns a new PermissionCollection for holding permissions of this class.
Answer null if any permission collection can be used.
Returns
- a new PermissionCollection or null
see java.security.BasicPermissionCollection