|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.security.Permission
public abstract class Permission
Abstract superclass of all classes which represent permission to access system resources.
| Constructor Summary | |
|---|---|
Permission(String name)
Constructs a new instance of this class with its name set to the argument. |
|
| Method Summary | |
|---|---|
void |
checkGuard(Object obj)
|
abstract boolean |
equals(Object obj)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
abstract String |
getActions()
Returns the actions associated with the receiver. |
String |
getName()
Returns the name of the receiver. |
abstract int |
hashCode()
Returns an integer hash code for the receiver. |
abstract boolean |
implies(Permission permission)
Indicates whether the argument permission is implied by the receiver. |
PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection for holding permissions of this class. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Permission(String name)
name - String the name of the permission.| Method Detail |
|---|
public abstract boolean equals(Object obj)
Object
equals in class Objectobj - 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.Object.hashCode()public abstract int hashCode()
true when passed to .equals must
answer the same value for this method.
hashCode in class Objectequals(java.lang.Object)public abstract String getActions()
public abstract boolean implies(Permission permission)
permission - Permission the permission to check.
true if the argument permission is implied
by the receiver, and false if it is not.public final String getName()
public void checkGuard(Object obj)
throws SecurityException
checkGuard in interface GuardSecurityExceptionpublic PermissionCollection newPermissionCollection()
public String toString()
toString in class Object
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||