| java.lang.Object java.security.Permission
All known Subclasses: java.security.AllPermission, java.net.SocketPermission, java.security.UnresolvedPermission, java.security.BasicPermission, java.io.FilePermission,
Permission | abstract public class Permission implements Guard,Serializable(Code) | | Abstract superclass of all classes which represent permission to access
system resources.
|
Constructor Summary | |
public | Permission(String name) Constructs a new instance of this class with its name set to the
argument. |
Permission | public Permission(String name)(Code) | | Constructs a new instance of this class with its name set to the
argument.
Parameters: name - String the name of the permission. |
getActions | abstract public String getActions()(Code) | | Answers the actions associated with the receiver. Subclasses should
return their actions in canonical form. If no actions are associated with
the receiver, the empty string should be returned.
String the receiver's actions. |
getName | final public String getName()(Code) | | Answers the name of the receiver.
String the receiver's name. |
hashCode | abstract 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.
int the receiver's hash. See Also: Permission.equals |
implies | abstract 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 - 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.
PermissionCollection or null a suitable permission collection forinstances of the class of the receiver. |
toString | public String toString()(Code) | | Answers a string containing a concise, human-readable description of the
receiver.
String a printable representation for the receiver. |
|
|