| java.lang.Object java.security.Permission java.security.BasicPermission java.util.PropertyPermission
PropertyPermission | final public class PropertyPermission extends BasicPermission (Code) | | PropertyPermission objects represent permission to access system properties.
|
Method Summary | |
public boolean | equals(Object o) Compares the argument to the receiver, and answers true if they represent
the same object using a class specific comparison. | public String | getActions() Answers the actions associated with the receiver. | public int | hashCode() Answers an integer hash code for the receiver. | public boolean | implies(Permission permission) Indicates whether the argument permission is implied by the receiver. | public PermissionCollection | newPermissionCollection() Answers a new PermissionCollection for holding permissions of this class. |
PropertyPermission | public PropertyPermission(String name, String actions)(Code) | | Constructs a new instance of this class.
Parameters: name - java.lang.String the (possibly wildcarded) name of theproperty. Parameters: actions - java.lang.String the actions which are applicable to it. |
equals | public boolean equals(Object o)(Code) | | Compares the argument to the receiver, and answers 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 true if the object is the same as this objectfalse if it is different from this object See Also: PropertyPermission.hashCode |
getActions | public String getActions()(Code) | | Answers the actions associated with the receiver. The result will be
either "read", "write", or "read,write".
String the actions associated with the receiver. |
hashCode | public int hashCode()(Code) | | Answers 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.
the receiver's hash See Also: PropertyPermission.equals |
implies | public boolean implies(Permission permission)(Code) | | Indicates whether the argument permission is implied by the receiver.
boolean true if the argument permission is impliedby the receiver, and false if it is not. Parameters: permission - java.security.Permission the permission to check |
newPermissionCollection | public PermissionCollection newPermissionCollection()(Code) | | Answers a new PermissionCollection for holding permissions of this class.
Answer null if any permission collection can be used.
a new PermissionCollection or nullsee java.security.BasicPermissionCollection |
|
|