Class TestSecurityManager
- java.lang.Object
-
- java.lang.SecurityManager
-
- com.github.guillaumederval.javagrading.TestSecurityManager
-
public class TestSecurityManager extends SecurityManager
A custom Security Manager, authorizing everything and adding a new Permission for writing to stdout/stderr it is automatically as the JVM's Security Manager once a test is run with GradingRunner.
-
-
Constructor Summary
Constructors Constructor Description TestSecurityManager()
-
Method Summary
Modifier and Type Method Description ThreadGroupgetThreadGroup()Hackfix to forbid creating threads in the root group when you have no rights to create threads-
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkWrite, checkWrite, getClassContext, getSecurityContext
-
-
-
-
Method Detail
-
getThreadGroup
public ThreadGroup getThreadGroup()
Hackfix to forbid creating threads in the root group when you have no rights to create threads- Overrides:
getThreadGroupin classSecurityManager
-
-