edu.nyu.cs.pdsg.runtime
Class ContainerPermissionCollection

java.lang.Object
  extended byjava.security.PermissionCollection
      extended byedu.nyu.cs.pdsg.runtime.ContainerPermissionCollection
All Implemented Interfaces:
java.io.Serializable

public class ContainerPermissionCollection
extends java.security.PermissionCollection

Special permission collection class to be used by the ContainerClassLoader, and it allows for the modification of permissions in the future... needs to be run from a context that allows for permission changing, and will probably allow only specific classes to do so.

See Also:
Serialized Form

Field Summary
private  boolean amPrivileged
           
(package private)  AuthorizationMonitor authMonitor
           
private static boolean checkPermissions
           
(package private)  PermissionsAdaptor permissionsAdaptor
           
(package private) static java.util.HashMap threadGroupMap
           
private  java.util.Vector v
           
 
Fields inherited from class java.security.PermissionCollection
 
Constructor Summary
ContainerPermissionCollection()
           
ContainerPermissionCollection(boolean amPrivileged)
           
 
Method Summary
 void add(java.security.Permission permission)
          Adds a permission object to the current collection of permission objects.
static boolean associateAuthorizationMonitor(java.lang.ThreadGroup tg, Role identity)
           
 java.util.Enumeration elements()
          Returns an enumeration of all the Permission objects in the collection.
static void garbageCollectThreadGroups()
           
private  DrbacAuthorizationMonitor getThreadGroupAuthorizationMonitor()
           
private  boolean hasPermissionToModify()
          Perform checks here to determine if one has the permissions to modify the relevant class's permissions.
 boolean implies(java.security.Permission permission)
          Checks to see if the specified permission is implied by the collection of Permission objects held in this PermissionCollection.
 void modulatePermissions(java.util.Enumeration _permissions)
           
 void setAuthorizationMonitor(AuthorizationMonitor _authMonitor)
           
 void setPermissionsAdaptor(PermissionsAdaptor _permissionsAdaptor)
           
static void setThreadGroupMonitor(DrbacAuthorizationMonitor authMon, java.lang.ThreadGroup tg)
           
 void startCheckingPermissions()
           
 
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
 

Field Detail

checkPermissions

private static boolean checkPermissions

amPrivileged

private boolean amPrivileged

v

private java.util.Vector v

authMonitor

AuthorizationMonitor authMonitor

permissionsAdaptor

PermissionsAdaptor permissionsAdaptor

threadGroupMap

static java.util.HashMap threadGroupMap
Constructor Detail

ContainerPermissionCollection

public ContainerPermissionCollection()

ContainerPermissionCollection

public ContainerPermissionCollection(boolean amPrivileged)
Method Detail

associateAuthorizationMonitor

public static boolean associateAuthorizationMonitor(java.lang.ThreadGroup tg,
                                                    Role identity)

setThreadGroupMonitor

public static void setThreadGroupMonitor(DrbacAuthorizationMonitor authMon,
                                         java.lang.ThreadGroup tg)

garbageCollectThreadGroups

public static void garbageCollectThreadGroups()

getThreadGroupAuthorizationMonitor

private DrbacAuthorizationMonitor getThreadGroupAuthorizationMonitor()

add

public void add(java.security.Permission permission)
Adds a permission object to the current collection of permission objects.


elements

public java.util.Enumeration elements()
Returns an enumeration of all the Permission objects in the collection.


implies

public boolean implies(java.security.Permission permission)
Checks to see if the specified permission is implied by the collection of Permission objects held in this PermissionCollection.


hasPermissionToModify

private boolean hasPermissionToModify()
Perform checks here to determine if one has the permissions to modify the relevant class's permissions.


setPermissionsAdaptor

public void setPermissionsAdaptor(PermissionsAdaptor _permissionsAdaptor)

setAuthorizationMonitor

public void setAuthorizationMonitor(AuthorizationMonitor _authMonitor)

modulatePermissions

public void modulatePermissions(java.util.Enumeration _permissions)

startCheckingPermissions

public void startCheckingPermissions()


Copyright (c) 2002-2003 New York University RLAB