| java.lang.Object | ||
| ↳ | java.security.Permission | |
| ↳ | java.security.BasicPermission | |
Known Direct Subclasses
|
Superclass of permissions which have names but no action lists.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of this class with the given name and action list.
| |||||||||||
Creates an instance of this class with the given name and action list.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compares the argument to the receiver, and returns true if they represent
the same object using a class specific comparison.
| |||||||||||
Returns the actions associated with the receiver.
| |||||||||||
Returns an integer hash code for the receiver.
| |||||||||||
Indicates whether the argument permission is implied by the receiver.
| |||||||||||
Returns a new PermissionCollection for holding permissions of this class.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.security.Permission
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface java.security.Guard
| |||||||||||
Creates an instance of this class with the given name and action list.
| name | String the name of the new permission. |
|---|
Creates an instance of this class with the given name and action list. The action list is ignored.
| name | String the name of the new permission. |
|---|---|
| action | String ignored. |
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 and the object must have the same class and name.
| obj | the object to compare with this object |
|---|
true if the object is the same as this object
false if it is different from this objectReturns the actions associated with the receiver. BasicPermission objects have no actions, so answer the empty string.
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.
Indicates whether the argument permission is implied by the receiver.
| permission | java.security.Permission the permission to check |
|---|
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.
Note: For BasicPermission (and subclasses which do not override this method), the collection which is returned does not invoke the .implies method of the permissions which are stored in it when checking if the collection implies a permission. Instead, it assumes that if the type of the permission is correct, and the name of the permission is correct, there is a match.