|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
com.sun.jini.phoenix.ExecPermission
Represents permission to execute a command to create an activation group.
An instance of this class contains a name (also referred to as a "target
name") but no actions list; you either have the named permission or you
don't. The target name is any name accepted by FilePermission
,
with the same matching semantics.
Constructor Summary | |
ExecPermission(String name)
Constructs an instance with the specified name. |
Method Summary | |
boolean |
equals(Object obj)
Two instances of this class are equal if FilePermission
instances created with their names are equal. |
String |
getActions()
Returns the empty string. |
int |
hashCode()
Returns a hash code value for this object. |
boolean |
implies(Permission p)
Returns true if the specified permission is an instance
of ExecPermission and a FilePermission
constructed with the name of this permission implies a
FilePermission constructed with the name of the specified
permission; returns false otherwise. |
Methods inherited from class java.security.Permission |
checkGuard, getName, newPermissionCollection, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ExecPermission(String name)
name
- the target name
NullPointerException
- if the name is null
Method Detail |
public boolean implies(Permission p)
true
if the specified permission is an instance
of ExecPermission
and a FilePermission
constructed with the name of this permission implies a
FilePermission
constructed with the name of the specified
permission; returns false
otherwise.
p
- the permission to check
true
if the specified permission is an instance
of ExecPermission
and a FilePermission
constructed with the name of this permission implies a
FilePermission
constructed with the name of the specified
permission; returns false
otherwise.public boolean equals(Object obj)
FilePermission
instances created with their names are equal.
public int hashCode()
public String getActions()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |