| |
|
| java.lang.Object java.security.Permission java.security.AllPermission
AllPermission | final public class AllPermission extends Permission (Code) | | Subclass of Permission whose instances imply all other permissions. Granting
this permission is equivalent to disabling security.
|
Method Summary | |
public boolean | equals(Object obj) 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. |
AllPermission | public AllPermission(String name, String actions)(Code) | | Constructs a new instance of this class. The two argument version is
provided for class Policy so that it has a consistent call
pattern across all Permissions. The name and action list are both
ignored.
Parameters: name - java.lang.String ignored. Parameters: actions - java.lang.String ignored. |
AllPermission | public AllPermission()(Code) | | Constructs a new instance of this class.
|
equals | public boolean equals(Object obj)(Code) | | Compares the argument to the receiver, and answers true if they represent
the same object using a class specific comparison. All
AllPermissions are equal to each other.
Parameters: obj - 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: AllPermission.hashCode |
getActions | public String getActions()(Code) | | Answers the actions associated with the receiver. Since AllPermission
objects allow all actions, answer with the string "".
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: AllPermission.equals |
implies | public boolean implies(Permission permission)(Code) | | Indicates whether the argument permission is implied by the receiver.
AllPermission objects imply all other permissions.
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 |
|
|
|