Class AccessControlContextHackcessor


  • public final class AccessControlContextHackcessor
    extends java.lang.Object
    This class exists to provide access to AccessControlContext.getContext() method, which is package protected.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Collection<java.security.ProtectionDomain> getContext​(java.lang.Class<?> pdToExclude)
      Returns the list of protection domains of the code available on stack.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getContext

        public static java.util.Collection<java.security.ProtectionDomain> getContext​(java.lang.Class<?> pdToExclude)
        Returns the list of protection domains of the code available on stack. It will exclude the protection domain of the supplied class. If the returned list is empty, the stack contained only system/privileged code.