public class MySecurityManager
extends java.lang.SecurityManager
| Constructor and Description |
|---|
MySecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCallerClassName(int callStackDepth)
Retrieves a calling class name
from current stack according to the given
depth parameter.
|
checkAccept, checkAccess, checkAccess, checkAwtEventQueueAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMemberAccess, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkSystemClipboardAccess, checkTopLevelWindow, checkWrite, checkWrite, classDepth, classLoaderDepth, currentClassLoader, currentLoadedClass, getClassContext, getInCheck, getSecurityContext, getThreadGroup, inClass, inClassLoaderpublic java.lang.String getCallerClassName(int callStackDepth)
callStackDepth - The depth in which to look for the class name.
This is handled by the calling class, as they
would know how deep they are and which class
name they need to retrieve.