com.croftsoft.apps.vaft.security
Class HostSecurityManager

java.lang.Object
  extended by java.lang.SecurityManager
      extended by com.croftsoft.core.security.manager.UntrustedSecurityManager
          extended by com.croftsoft.apps.vaft.security.HostSecurityManager

public class HostSecurityManager
extends UntrustedSecurityManager

A subclass of UntrustedSecurityManager that overrides some restrictions.

Version:
1998-04-26
Author:
David W. Croft

Field Summary
static String[] PACKAGES_FORBIDDEN
           
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
HostSecurityManager()
           
 
Method Summary
 void checkPackageAccess(String pkg)
          Allows the agent to use classes from the packages "java.lang", "java.io", and the "vaft.*" hierarchy.
 void checkPackageDefinition(String pkg)
          Prevents any thread, trusted or untrusted, from creating new classes within the following package hierarchies: java.* javax.* sun.* com.sun.* com.orbs.pub.app.vaft.*
 
Methods inherited from class com.croftsoft.core.security.manager.UntrustedSecurityManager
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, reject_untrusted
 
Methods inherited from class java.lang.SecurityManager
checkPermission, checkPermission, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGES_FORBIDDEN

public static final String[] PACKAGES_FORBIDDEN
Constructor Detail

HostSecurityManager

public HostSecurityManager()
Method Detail

checkPackageAccess

public void checkPackageAccess(String pkg)
Allows the agent to use classes from the packages "java.lang", "java.io", and the "vaft.*" hierarchy. All other classes are forbidden.

Overrides:
checkPackageAccess in class UntrustedSecurityManager

checkPackageDefinition

public void checkPackageDefinition(String pkg)
Prevents any thread, trusted or untrusted, from creating new classes within the following package hierarchies:

Overrides:
checkPackageDefinition in class UntrustedSecurityManager

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)