public class NoExitSecurityManager extends SecurityManager
System.exit(int)
(and related) from being used.inCheck
Constructor and Description |
---|
NoExitSecurityManager() |
NoExitSecurityManager(SecurityManager parent) |
Modifier and Type | Method and Description |
---|---|
void |
checkExit(int code)
Always throws
SecurityException . |
void |
checkPermission(Permission perm) |
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoader
public NoExitSecurityManager(SecurityManager parent)
public NoExitSecurityManager()
public void checkPermission(Permission perm)
checkPermission
in class SecurityManager
public void checkExit(int code)
SecurityException
.checkExit
in class SecurityManager