Package com.helger.commons.lang
Class ReflectionSecurityManager
- java.lang.Object
-
- java.lang.SecurityManager
-
- com.helger.commons.lang.ReflectionSecurityManager
-
public class ReflectionSecurityManager extends SecurityManager
A custom security manager that exposes thegetClassContext()information. Source on SO- Author:
- Someone on SO
-
-
Field Summary
Fields Modifier and Type Field Description static ReflectionSecurityManagerINSTANCE
-
Constructor Summary
Constructors Constructor Description ReflectionSecurityManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getCallerClass(int nCallStackDepth)Class<?>[]getCallerClassContext()StringgetCallerClassName(int nCallStackDepth)-
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, getThreadGroup
-
-
-
-
Field Detail
-
INSTANCE
public static final ReflectionSecurityManager INSTANCE
-
-