Class AccessControlContextHackcessor

java.lang.Object
com.atlassian.bamboo.specs.maven.sandbox.AccessControlContextHackcessor

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

    • getContext

      public static Collection<ProtectionDomain> getContext(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.