Class NGSecurityManager
java.lang.Object
java.lang.SecurityManager
com.martiansoftware.nailgun.NGSecurityManager
Security manager which does nothing other than trap
checkExit, or delegate all non-deprecated methods to
a base manager.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final SecurityManagerprivate static final ThreadLocalFields inherited from class SecurityManager
inCheck -
Constructor Summary
ConstructorsConstructorDescriptionConstruct an NGSecurityManager with the given base. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckExit(int status) voidcheckPermission(Permission perm) voidcheckPermission(Permission perm, Object context) voidAvoid constructing a FilePermission object in checkRead if base manager is null.static voidsetExit(PrintStream exit) Methods inherited from class SecurityManager
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoader
-
Field Details
-
EXIT
-
base
-
-
Constructor Details
-
NGSecurityManager
Construct an NGSecurityManager with the given base.- Parameters:
base- the base security manager, or null for no base.
-
-
Method Details
-
checkExit
public void checkExit(int status) - Overrides:
checkExitin classSecurityManager
-
checkPermission
- Overrides:
checkPermissionin classSecurityManager
-
checkPermission
- Overrides:
checkPermissionin classSecurityManager
-
setExit
-
checkRead
Avoid constructing a FilePermission object in checkRead if base manager is null.- Overrides:
checkReadin classSecurityManager
-