wyvern.world
Class WyvernSecurityManager

java.lang.Object
  extended byjava.lang.SecurityManager
      extended bywyvern.world.WyvernSecurityManager

public class WyvernSecurityManager
extends java.lang.SecurityManager

Checks permissions before executing code. Ensures wizards don't try to do naughty things in their java & python code.

Version:
1.0, Apr 13, 2002
Author:
Steve Yegge

Field Summary
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
WyvernSecurityManager()
           
 
Method Summary
 void checkPermission(java.security.Permission perm)
          Throws a SecurityException if the requested access, specified by the given permission, is not permitted based on the security policy currently in effect.
 void checkPermission(java.security.Permission perm, java.lang.Object context)
          Throws an exception if wizard code is trying to access a protected resource.
 
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, 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
 

Constructor Detail

WyvernSecurityManager

public WyvernSecurityManager()
Method Detail

checkPermission

public void checkPermission(java.security.Permission perm)
Throws a SecurityException if the requested access, specified by the given permission, is not permitted based on the security policy currently in effect.


checkPermission

public void checkPermission(java.security.Permission perm,
                            java.lang.Object context)
Throws an exception if wizard code is trying to access a protected resource.