|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.PermissionCollection
org.systinet.security.perm.WASPPermissions
This class represents a heterogeneous collection designed for WASP permissions. It is very simlilar to standard java.security.Permissions (Java 1.3).That is, it contains different types of Permission objects, organized into PermissionCollections. The main difference relieas in the fact that not only AllPermission, but also AllWSManagePermission has special behaviour. AllPermission implies any extension of java Permission, AllWSManagePermission implies any extension of WSManagePermission.
Constructor Summary | |
WASPPermissions()
Creates a new Permissions object containing no PermissionCollections. |
Method Summary | |
void |
add(java.security.Permission permission)
Adds a permission object to the PermissionCollection for the class the permission belongs to. |
java.util.Enumeration |
elements()
Returns an enumeration of all the Permission objects in all the PermissionCollections in this Permissions object. |
boolean |
implies(java.security.Permission permission)
Checks to see if this object's PermissionCollection for permissions of the specified permission's type implies the permissions expressed in the permission object. |
Methods inherited from class java.security.PermissionCollection |
isReadOnly, setReadOnly, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WASPPermissions()
Method Detail |
public void add(java.security.Permission permission)
permission
- the Permission object to add.
java.lang.SecurityException
- if this Permissions object is
marked as readonly.public boolean implies(java.security.Permission permission)
permission
- the Permission object to check.
public java.util.Enumeration elements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |