org.jdesktop.wonderland.client.jme
Class Webstart.JnlpSecurityManager

java.lang.Object
  extended by java.lang.SecurityManager
      extended by org.jdesktop.wonderland.client.jme.Webstart.JnlpSecurityManager
Enclosing class:
Webstart

public static class Webstart.JnlpSecurityManager
extends java.lang.SecurityManager

Simple Security Manager for JNLP deployment.


Field Summary
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
Webstart.JnlpSecurityManager()
          Creates a new instance of JnlpSecurityManager
 
Method Summary
 void checkExit(int status)
          The Wonderland client should never exit, unless when specifically closed.
 void checkPermission(java.security.Permission perm)
           
 void checkPermission(java.security.Permission perm, java.lang.Object context)
           
 
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, 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

Webstart.JnlpSecurityManager

public Webstart.JnlpSecurityManager()
Creates a new instance of JnlpSecurityManager

Method Detail

checkPermission

public void checkPermission(java.security.Permission perm)
Overrides:
checkPermission in class java.lang.SecurityManager

checkPermission

public void checkPermission(java.security.Permission perm,
                            java.lang.Object context)
Overrides:
checkPermission in class java.lang.SecurityManager

checkExit

public void checkExit(int status)
The Wonderland client should never exit, unless when specifically closed. There are, however, a slew of System.exit() calls throughout the code upon error conditions. Here, we catch when these are called and print out a stack track for debugging purposes.

Overrides:
checkExit in class java.lang.SecurityManager


Open Wonderland - http://openwonderland.org