|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
org.systinet.security.perm.DelegatePermission
Permission that allows to delegate permissions. This class is abstract and left to be inheritted by specific implementation.
Field Summary | |
static java.lang.String |
ALL_NAMES
Intended for all names, can be passed to contructor. |
Constructor Summary | |
protected |
DelegatePermission(java.lang.String name)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Checks two DelegatePermission objects for equality. |
java.lang.String |
getActions()
No actions supported by this permission. |
int |
hashCode()
Returns the hash code value for this object. |
boolean |
implies(java.security.Permission p)
Checks if this DelegatePermission object "implies" the specified permission. |
java.security.PermissionCollection |
newPermissionCollection()
Returns a new PermissionCollection object for storing DelegaetPermission objects. |
java.lang.String |
toString()
Overriden to return complete description of this permission. |
Methods inherited from class java.security.Permission |
checkGuard, getName |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String ALL_NAMES
Constructor Detail |
protected DelegatePermission(java.lang.String name)
name
- implementation specific, null
implies all namesMethod Detail |
public java.lang.String toString()
public boolean implies(java.security.Permission p)
More specifically, this method returns true if:
p
- the permission to check against.
true
if the specified permission is implied by this object,
false
if not.public boolean equals(java.lang.Object obj)
obj
- the object we are testing for equality with this object.
java.lang.ClassCastException
- if the parameter is not instanceof DelegatePermissionpublic int hashCode()
getName().hashCode()
, where getName
is
from the Permission superclass.
public java.lang.String getActions()
null
public java.security.PermissionCollection newPermissionCollection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |