| java.lang.Object | |
| ↳ | java.security.Permission |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Abstract superclass of all classes which represent permission to access system resources.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of this class with its name set to the
argument.
| |||||||||||
| 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 the name of 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.
| |||||||||||
Returns a string containing a concise, human-readable description of the
receiver.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
From interface java.security.Guard
| |||||||||||
Constructs a new instance of this class with its name set to the argument.
| name | String the name of the permission. |
|---|
| SecurityException |
|---|
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. The implementation in Object returns true only if the argument is the exact same object as the receiver (==).
| obj | Object the object to compare with this object. |
|---|
true if the object is the same as this
object false if it is different from this object.Returns 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.
Returns the name of the receiver.
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 | 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.
Returns a string containing a concise, human-readable description of the receiver.