com.croftsoft.apps.vaft.security
Class HostSecurityManager
java.lang.Object
java.lang.SecurityManager
com.croftsoft.core.security.manager.UntrustedSecurityManager
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
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 |
PACKAGES_FORBIDDEN
public static final String[] PACKAGES_FORBIDDEN
HostSecurityManager
public HostSecurityManager()
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:
- java.*
- javax.*
- sun.*
- com.sun.*
- com.orbs.pub.app.vaft.*
- Overrides:
checkPackageDefinition
in class UntrustedSecurityManager
CroftSoft Apps Javadoc (2008-09-28 21:15:07)