org.openmrs.util
Class OpenmrsSecurityManager

java.lang.Object
  extended by java.lang.SecurityManager
      extended by org.openmrs.util.OpenmrsSecurityManager

public class OpenmrsSecurityManager
extends java.lang.SecurityManager

Helper class created only to call some protected methods on the SecurityManager class.

See Also:
SecurityManager

Field Summary
 
Fields inherited from class java.lang.SecurityManager
inCheck
 
Constructor Summary
OpenmrsSecurityManager()
           
 
Method Summary
 java.lang.Class<?> getCallerClass(int callStackDepth)
          Returns the class on the current execution stack at the given depth.
 
Methods inherited from class java.lang.SecurityManager
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, inClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenmrsSecurityManager

public OpenmrsSecurityManager()
Method Detail

getCallerClass

public java.lang.Class<?> getCallerClass(int callStackDepth)
Returns the class on the current execution stack at the given depth. 0 is the most recently called class.

Parameters:
callStackDepth -
Returns:
the most recently called class.
Throws:
APIException - if given a callStackDepth less than zero
See Also:
SecurityManager.getClassContext()
Expected behavior:
get the most recently called method, throw an error if given a subzero call stack level

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change