abbot.script
Class AppletSecurityManager

java.lang.Object
  extended by java.lang.SecurityManager
      extended by sun.awt.AWTSecurityManager
          extended by sun.applet.AppletSecurity
              extended by abbot.script.AppletSecurityManager

public class AppletSecurityManager
extends sun.applet.AppletSecurity

This security manager extends sun.applet.AppletSecurity b/c AppletViewer does some casts that assume that is the only security manager that will be installed. It has to permit everything, though, or the framework will be hampered. Because of this, it isn't a reliable test of an applet responding well to restricted permissions.


Field Summary
(package private)  SecurityManager parent
           
(package private)  boolean removeOnExit
           
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
AppletSecurityManager(SecurityManager sm)
           
AppletSecurityManager(SecurityManager sm, boolean removeOnExit)
           
 
Method Summary
 void checkExit(int status)
           
 void checkPermission(Permission perm)
           
 void checkPermission(Permission perm, Object context)
           
 
Methods inherited from class sun.applet.AppletSecurity
checkAccess, checkAccess, checkAwtEventQueueAccess, checkPackageAccess, getAppContext, getThreadGroup, inThreadGroup, inThreadGroup, reset
 
Methods inherited from class java.lang.SecurityManager
checkAccept, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageDefinition, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, inClass, inClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

SecurityManager parent

removeOnExit

boolean removeOnExit
Constructor Detail

AppletSecurityManager

public AppletSecurityManager(SecurityManager sm)

AppletSecurityManager

public AppletSecurityManager(SecurityManager sm,
                             boolean removeOnExit)
Method Detail

checkPermission

public void checkPermission(Permission perm,
                            Object context)
Overrides:
checkPermission in class SecurityManager

checkPermission

public void checkPermission(Permission perm)
Overrides:
checkPermission in class SecurityManager

checkExit

public void checkExit(int status)
Overrides:
checkExit in class SecurityManager


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge