public class NoExitSecurityManager
extends java.lang.SecurityManager
NoExitSecurityManager
throws a CheckExitCalled
exception
whenever checkExit(int)
is called. All other method calls are
delegated to the original security manager.Constructor | Description |
---|---|
NoExitSecurityManager(java.lang.SecurityManager originalSecurityManager) |
Modifier and Type | Method | Description |
---|---|---|
void |
checkAccept(java.lang.String host,
int port) |
|
void |
checkAccess(java.lang.Thread t) |
|
void |
checkAccess(java.lang.ThreadGroup g) |
|
void |
checkAwtEventQueueAccess() |
|
void |
checkConnect(java.lang.String host,
int port) |
|
void |
checkConnect(java.lang.String host,
int port,
java.lang.Object context) |
|
void |
checkCreateClassLoader() |
|
void |
checkDelete(java.lang.String file) |
|
void |
checkExec(java.lang.String cmd) |
|
void |
checkExit(int status) |
|
void |
checkLink(java.lang.String lib) |
|
void |
checkListen(int port) |
|
void |
checkMemberAccess(java.lang.Class<?> clazz,
int which) |
|
void |
checkMulticast(java.net.InetAddress maddr) |
|
void |
checkMulticast(java.net.InetAddress maddr,
byte ttl) |
|
void |
checkPackageAccess(java.lang.String pkg) |
|
void |
checkPackageDefinition(java.lang.String pkg) |
|
void |
checkPermission(java.security.Permission perm) |
|
void |
checkPermission(java.security.Permission perm,
java.lang.Object context) |
|
void |
checkPrintJobAccess() |
|
void |
checkPropertiesAccess() |
|
void |
checkPropertyAccess(java.lang.String key) |
|
void |
checkRead(java.io.FileDescriptor fd) |
|
void |
checkRead(java.lang.String file) |
|
void |
checkRead(java.lang.String file,
java.lang.Object context) |
|
void |
checkSecurityAccess(java.lang.String target) |
|
void |
checkSetFactory() |
|
void |
checkSystemClipboardAccess() |
|
boolean |
checkTopLevelWindow(java.lang.Object window) |
|
void |
checkWrite(java.io.FileDescriptor fd) |
|
void |
checkWrite(java.lang.String file) |
|
boolean |
getInCheck() |
|
java.lang.Object |
getSecurityContext() |
|
int |
getStatusOfFirstCheckExitCall() |
|
java.lang.ThreadGroup |
getThreadGroup() |
|
boolean |
isCheckExitCalled() |
public NoExitSecurityManager(java.lang.SecurityManager originalSecurityManager)
public void checkExit(int status)
checkExit
in class java.lang.SecurityManager
public boolean isCheckExitCalled()
public int getStatusOfFirstCheckExitCall()
public boolean getInCheck()
public java.lang.Object getSecurityContext()
getSecurityContext
in class java.lang.SecurityManager
public void checkPermission(java.security.Permission perm)
checkPermission
in class java.lang.SecurityManager
public void checkPermission(java.security.Permission perm, java.lang.Object context)
checkPermission
in class java.lang.SecurityManager
public void checkCreateClassLoader()
checkCreateClassLoader
in class java.lang.SecurityManager
public void checkAccess(java.lang.Thread t)
checkAccess
in class java.lang.SecurityManager
public void checkAccess(java.lang.ThreadGroup g)
checkAccess
in class java.lang.SecurityManager
public void checkExec(java.lang.String cmd)
checkExec
in class java.lang.SecurityManager
public void checkLink(java.lang.String lib)
checkLink
in class java.lang.SecurityManager
public void checkRead(java.io.FileDescriptor fd)
checkRead
in class java.lang.SecurityManager
public void checkRead(java.lang.String file)
checkRead
in class java.lang.SecurityManager
public void checkRead(java.lang.String file, java.lang.Object context)
checkRead
in class java.lang.SecurityManager
public void checkWrite(java.io.FileDescriptor fd)
checkWrite
in class java.lang.SecurityManager
public void checkWrite(java.lang.String file)
checkWrite
in class java.lang.SecurityManager
public void checkDelete(java.lang.String file)
checkDelete
in class java.lang.SecurityManager
public void checkConnect(java.lang.String host, int port)
checkConnect
in class java.lang.SecurityManager
public void checkConnect(java.lang.String host, int port, java.lang.Object context)
checkConnect
in class java.lang.SecurityManager
public void checkListen(int port)
checkListen
in class java.lang.SecurityManager
public void checkAccept(java.lang.String host, int port)
checkAccept
in class java.lang.SecurityManager
public void checkMulticast(java.net.InetAddress maddr)
checkMulticast
in class java.lang.SecurityManager
public void checkMulticast(java.net.InetAddress maddr, byte ttl)
checkMulticast
in class java.lang.SecurityManager
public void checkPropertiesAccess()
checkPropertiesAccess
in class java.lang.SecurityManager
public void checkPropertyAccess(java.lang.String key)
checkPropertyAccess
in class java.lang.SecurityManager
public boolean checkTopLevelWindow(java.lang.Object window)
checkTopLevelWindow
in class java.lang.SecurityManager
public void checkPrintJobAccess()
checkPrintJobAccess
in class java.lang.SecurityManager
public void checkSystemClipboardAccess()
checkSystemClipboardAccess
in class java.lang.SecurityManager
public void checkAwtEventQueueAccess()
checkAwtEventQueueAccess
in class java.lang.SecurityManager
public void checkPackageAccess(java.lang.String pkg)
checkPackageAccess
in class java.lang.SecurityManager
public void checkPackageDefinition(java.lang.String pkg)
checkPackageDefinition
in class java.lang.SecurityManager
public void checkSetFactory()
checkSetFactory
in class java.lang.SecurityManager
public void checkMemberAccess(java.lang.Class<?> clazz, int which)
checkMemberAccess
in class java.lang.SecurityManager
public void checkSecurityAccess(java.lang.String target)
checkSecurityAccess
in class java.lang.SecurityManager
public java.lang.ThreadGroup getThreadGroup()
getThreadGroup
in class java.lang.SecurityManager
Copyright © 2011–2018. All rights reserved.