Class InternalSecurityManager

java.lang.Object
java.lang.SecurityManager
com.atlassian.bamboo.specs.maven.sandbox.internal.InternalSecurityManager

public class InternalSecurityManager extends SecurityManager
This class defines a security policy based on the applet security policy, with stuff that pertains only to applets removed.
  • Constructor Details

    • InternalSecurityManager

      public InternalSecurityManager()
      Construct and initialize.
  • Method Details

    • reset

      public void reset()
      Reset from Properties.
    • inThreadGroup

      protected boolean inThreadGroup(ThreadGroup g)
      Returns true if this threadgroup is in the applet's own thread group. This will return false if there is no current class loader.
    • inThreadGroup

      protected boolean inThreadGroup(Thread thread)
      Returns true of the threadgroup of thread is in the applet's own threadgroup.
    • checkAccess

      public void checkAccess(Thread t)
      Applets are not allowed to manipulate threads outside applet thread groups. However a terminated thread no longer belongs to any group.
      Overrides:
      checkAccess in class SecurityManager
    • checkAccess

      public void checkAccess(ThreadGroup g)
      Applets are not allowed to manipulate thread groups outside applet thread groups.
      Overrides:
      checkAccess in class SecurityManager
    • checkPackageAccess

      public void checkPackageAccess(String pkgname)
      Throws a SecurityException if the calling thread is not allowed to access the package specified by the argument.

      This method is used by the loadClass method of class loaders.

      The checkPackageAccess method for class SecurityManager calls checkPermission with the RuntimePermission("accessClassInPackage."+ pkgname) permission.

      Overrides:
      checkPackageAccess in class SecurityManager
      Parameters:
      pkgname - the package name.
      Throws:
      SecurityException - if the caller does not have permission to access the specified package.
      See Also: