public class sun.applet.AppletSecurity extends sun.awt.AWTSecurityManager
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: sun.applet.AppletSecurity
  super_class: sun.awt.AWTSecurityManager
{
  private static final jdk.internal.misc.JavaNetURLClassLoaderAccess JNUCLA;
    descriptor: Ljdk/internal/misc/JavaNetURLClassLoaderAccess;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final jdk.internal.misc.JavaSecurityAccess JSA;
    descriptor: Ljdk/internal/misc/JavaSecurityAccess;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private java.util.HashSet<java.lang.String> restrictedPackages;
    descriptor: Ljava/util/HashSet;
    flags: (0x0002) ACC_PRIVATE
    Signature: Ljava/util/HashSet<Ljava/lang/String;>;

  private boolean inThreadGroupCheck;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 60
            invokestatic jdk.internal.misc.SharedSecrets.getJavaNetURLClassLoaderAccess:()Ljdk/internal/misc/JavaNetURLClassLoaderAccess;
         1: .line 59
            putstatic sun.applet.AppletSecurity.JNUCLA:Ljdk/internal/misc/JavaNetURLClassLoaderAccess;
         2: .line 61
            invokestatic jdk.internal.misc.SharedSecrets.getJavaSecurityAccess:()Ljdk/internal/misc/JavaSecurityAccess;
            putstatic sun.applet.AppletSecurity.JSA:Ljdk/internal/misc/JavaSecurityAccess;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // sun.applet.AppletSecurity this
         0: .line 66
            aload 0 /* this */
            invokespecial sun.awt.AWTSecurityManager.<init>:()V
         1: .line 71
            aload 0 /* this */
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            putfield sun.applet.AppletSecurity.restrictedPackages:Ljava/util/HashSet;
         2: .line 226
            aload 0 /* this */
            iconst_0
            putfield sun.applet.AppletSecurity.inThreadGroupCheck:Z
         3: .line 67
            aload 0 /* this */
            invokevirtual sun.applet.AppletSecurity.reset:()V
         4: .line 68
            return
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lsun/applet/AppletSecurity;

  public void reset();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // sun.applet.AppletSecurity this
         0: .line 79
            aload 0 /* this */
            getfield sun.applet.AppletSecurity.restrictedPackages:Ljava/util/HashSet;
            invokevirtual java.util.HashSet.clear:()V
         1: .line 81
            new sun.applet.AppletSecurity$1
            dup
            aload 0 /* this */
            invokespecial sun.applet.AppletSecurity$1.<init>:(Lsun/applet/AppletSecurity;)V
            invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
            pop
         2: .line 107
            return
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lsun/applet/AppletSecurity;

  private sun.applet.AppletClassLoader currentAppletClassLoader();
    descriptor: ()Lsun/applet/AppletClassLoader;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=6, args_size=1
        start local 0 // sun.applet.AppletSecurity this
         0: .line 117
            aload 0 /* this */
            invokevirtual sun.applet.AppletSecurity.currentClassLoader:()Ljava/lang/ClassLoader;
            astore 1 /* loader */
        start local 1 // java.lang.ClassLoader loader
         1: .line 119
            aload 1 /* loader */
            ifnull 2
            aload 1 /* loader */
            instanceof sun.applet.AppletClassLoader
            ifeq 3
         2: .line 120
      StackMap locals: java.lang.ClassLoader
      StackMap stack:
            aload 1 /* loader */
            checkcast sun.applet.AppletClassLoader
            areturn
         3: .line 123
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual sun.applet.AppletSecurity.getClassContext:()[Ljava/lang/Class;
            astore 2 /* context */
        start local 2 // java.lang.Class[] context
         4: .line 124
            iconst_0
            istore 3 /* i */
        start local 3 // int i
         5: goto 10
         6: .line 125
      StackMap locals: java.lang.Class[] int
      StackMap stack:
            aload 2 /* context */
            iload 3 /* i */
            aaload
            invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
            astore 1 /* loader */
         7: .line 126
            aload 1 /* loader */
            instanceof sun.applet.AppletClassLoader
            ifeq 9
         8: .line 127
            aload 1 /* loader */
            checkcast sun.applet.AppletClassLoader
            areturn
         9: .line 124
      StackMap locals:
      StackMap stack:
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
        10: iload 3 /* i */
            aload 2 /* context */
            arraylength
            if_icmplt 6
        end local 3 // int i
        11: .line 137
            iconst_0
            istore 3 /* i */
        start local 3 // int i
        12: goto 21
        13: .line 138
      StackMap locals:
      StackMap stack:
            aload 2 /* context */
            iload 3 /* i */
            aaload
            invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
            astore 4 /* currentLoader */
        start local 4 // java.lang.ClassLoader currentLoader
        14: .line 140
            aload 4 /* currentLoader */
            instanceof java.net.URLClassLoader
            ifeq 20
        15: .line 141
            aload 4 /* currentLoader */
            checkcast java.net.URLClassLoader
            astore 5 /* ld */
        start local 5 // java.net.URLClassLoader ld
        16: .line 143
            new sun.applet.AppletSecurity$2
            dup
            aload 0 /* this */
            aload 5 /* ld */
            invokespecial sun.applet.AppletSecurity$2.<init>:(Lsun/applet/AppletSecurity;Ljava/net/URLClassLoader;)V
        17: .line 142
            invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
            checkcast java.lang.ClassLoader
            astore 1 /* loader */
        18: .line 175
            aload 1 /* loader */
            ifnull 20
        19: .line 176
            aload 1 /* loader */
            checkcast sun.applet.AppletClassLoader
            areturn
        end local 5 // java.net.URLClassLoader ld
        end local 4 // java.lang.ClassLoader currentLoader
        20: .line 137
      StackMap locals:
      StackMap stack:
            iinc 3 /* i */ 1
      StackMap locals:
      StackMap stack:
        21: iload 3 /* i */
            aload 2 /* context */
            arraylength
            if_icmplt 13
        end local 3 // int i
        22: .line 182
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
            astore 1 /* loader */
        23: .line 183
            aload 1 /* loader */
            instanceof sun.applet.AppletClassLoader
            ifeq 25
        24: .line 184
            aload 1 /* loader */
            checkcast sun.applet.AppletClassLoader
            areturn
        25: .line 187
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 2 // java.lang.Class[] context
        end local 1 // java.lang.ClassLoader loader
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   26     0           this  Lsun/applet/AppletSecurity;
            1   26     1         loader  Ljava/lang/ClassLoader;
            4   26     2        context  [Ljava/lang/Class;
            5   11     3              i  I
           12   22     3              i  I
           14   20     4  currentLoader  Ljava/lang/ClassLoader;
           16   20     5             ld  Ljava/net/URLClassLoader;

  protected boolean inThreadGroup(java.lang.ThreadGroup);
    descriptor: (Ljava/lang/ThreadGroup;)Z
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // sun.applet.AppletSecurity this
        start local 1 // java.lang.ThreadGroup g
         0: .line 196
            aload 0 /* this */
            invokevirtual sun.applet.AppletSecurity.currentAppletClassLoader:()Lsun/applet/AppletClassLoader;
            ifnonnull 2
         1: .line 197
            iconst_0
            ireturn
         2: .line 199
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual sun.applet.AppletSecurity.getThreadGroup:()Ljava/lang/ThreadGroup;
            aload 1 /* g */
            invokevirtual java.lang.ThreadGroup.parentOf:(Ljava/lang/ThreadGroup;)Z
            ireturn
        end local 1 // java.lang.ThreadGroup g
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lsun/applet/AppletSecurity;
            0    3     1     g  Ljava/lang/ThreadGroup;
    MethodParameters:
      Name  Flags
      g     

  protected boolean inThreadGroup(java.lang.Thread);
    descriptor: (Ljava/lang/Thread;)Z
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // sun.applet.AppletSecurity this
        start local 1 // java.lang.Thread thread
         0: .line 207
            aload 0 /* this */
            aload 1 /* thread */
            invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
            invokevirtual sun.applet.AppletSecurity.inThreadGroup:(Ljava/lang/ThreadGroup;)Z
            ireturn
        end local 1 // java.lang.Thread thread
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    1     0    this  Lsun/applet/AppletSecurity;
            0    1     1  thread  Ljava/lang/Thread;
    MethodParameters:
        Name  Flags
      thread  

  public void checkAccess(java.lang.Thread);
    descriptor: (Ljava/lang/Thread;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // sun.applet.AppletSecurity this
        start local 1 // java.lang.Thread t
         0: .line 221
            aload 1 /* t */
            invokevirtual java.lang.Thread.getState:()Ljava/lang/Thread$State;
            getstatic java.lang.Thread$State.TERMINATED:Ljava/lang/Thread$State;
            if_acmpeq 2
            aload 0 /* this */
            aload 1 /* t */
            invokevirtual sun.applet.AppletSecurity.inThreadGroup:(Ljava/lang/Thread;)Z
            ifne 2
         1: .line 222
            aload 0 /* this */
            getstatic sun.security.util.SecurityConstants.MODIFY_THREAD_PERMISSION:Ljava/lang/RuntimePermission;
            invokevirtual sun.applet.AppletSecurity.checkPermission:(Ljava/security/Permission;)V
         2: .line 224
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.Thread t
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lsun/applet/AppletSecurity;
            0    3     1     t  Ljava/lang/Thread;
    MethodParameters:
      Name  Flags
      t     

  public synchronized void checkAccess(java.lang.ThreadGroup);
    descriptor: (Ljava/lang/ThreadGroup;)V
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=3, args_size=2
        start local 0 // sun.applet.AppletSecurity this
        start local 1 // java.lang.ThreadGroup g
         0: .line 233
            aload 0 /* this */
            getfield sun.applet.AppletSecurity.inThreadGroupCheck:Z
            ifeq 3
         1: .line 238
            aload 0 /* this */
            getstatic sun.security.util.SecurityConstants.MODIFY_THREADGROUP_PERMISSION:Ljava/lang/RuntimePermission;
            invokevirtual sun.applet.AppletSecurity.checkPermission:(Ljava/security/Permission;)V
         2: .line 239
            goto 11
         3: .line 241
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield sun.applet.AppletSecurity.inThreadGroupCheck:Z
         4: .line 242
            aload 0 /* this */
            aload 1 /* g */
            invokevirtual sun.applet.AppletSecurity.inThreadGroup:(Ljava/lang/ThreadGroup;)Z
            ifne 10
         5: .line 243
            aload 0 /* this */
            getstatic sun.security.util.SecurityConstants.MODIFY_THREADGROUP_PERMISSION:Ljava/lang/RuntimePermission;
            invokevirtual sun.applet.AppletSecurity.checkPermission:(Ljava/security/Permission;)V
         6: .line 245
            goto 10
      StackMap locals:
      StackMap stack: java.lang.Throwable
         7: astore 2
         8: .line 246
            aload 0 /* this */
            iconst_0
            putfield sun.applet.AppletSecurity.inThreadGroupCheck:Z
         9: .line 247
            aload 2
            athrow
        10: .line 246
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield sun.applet.AppletSecurity.inThreadGroupCheck:Z
        11: .line 249
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.ThreadGroup g
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   12     0  this  Lsun/applet/AppletSecurity;
            0   12     1     g  Ljava/lang/ThreadGroup;
      Exception table:
        from    to  target  type
           3     7       7  any
    MethodParameters:
      Name  Flags
      g     

  public void checkPackageAccess(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=4, args_size=2
        start local 0 // sun.applet.AppletSecurity this
        start local 1 // java.lang.String pkgname
         0: .line 274
            aload 0 /* this */
            aload 1 /* pkgname */
            invokespecial sun.awt.AWTSecurityManager.checkPackageAccess:(Ljava/lang/String;)V
         1: .line 277
            aload 0 /* this */
            getfield sun.applet.AppletSecurity.restrictedPackages:Ljava/util/HashSet;
            invokevirtual java.util.HashSet.iterator:()Ljava/util/Iterator;
            astore 2 /* iter */
        start local 2 // java.util.Iterator iter
         2: goto 8
         3: .line 279
      StackMap locals: java.util.Iterator
      StackMap stack:
            aload 2 /* iter */
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.lang.String
            astore 3 /* pkg */
        start local 3 // java.lang.String pkg
         4: .line 284
            aload 1 /* pkgname */
            aload 3 /* pkg */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifne 5
            aload 1 /* pkgname */
            new java.lang.StringBuilder
            dup
            aload 3 /* pkg */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            ldc "."
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 8
         5: .line 286
      StackMap locals: java.lang.String
      StackMap stack:
            aload 0 /* this */
            new java.lang.RuntimePermission
            dup
         6: .line 287
            new java.lang.StringBuilder
            dup
            ldc "accessClassInPackage."
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* pkgname */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
         7: .line 286
            invokevirtual sun.applet.AppletSecurity.checkPermission:(Ljava/security/Permission;)V
        end local 3 // java.lang.String pkg
         8: .line 277
      StackMap locals:
      StackMap stack:
            aload 2 /* iter */
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
        end local 2 // java.util.Iterator iter
         9: .line 290
            return
        end local 1 // java.lang.String pkgname
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0   10     0     this  Lsun/applet/AppletSecurity;
            0   10     1  pkgname  Ljava/lang/String;
            2    9     2     iter  Ljava/util/Iterator<Ljava/lang/String;>;
            4    8     3      pkg  Ljava/lang/String;
    MethodParameters:
         Name  Flags
      pkgname  final

  public void checkAwtEventQueueAccess();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=3, args_size=1
        start local 0 // sun.applet.AppletSecurity this
         0: .line 305
            invokestatic sun.awt.AppContext.getAppContext:()Lsun/awt/AppContext;
            astore 1 /* appContext */
        start local 1 // sun.awt.AppContext appContext
         1: .line 306
            aload 0 /* this */
            invokevirtual sun.applet.AppletSecurity.currentAppletClassLoader:()Lsun/applet/AppletClassLoader;
            astore 2 /* appletClassLoader */
        start local 2 // sun.applet.AppletClassLoader appletClassLoader
         2: .line 308
            aload 1 /* appContext */
            invokestatic sun.awt.AppContext.isMainContext:(Lsun/awt/AppContext;)Z
            ifeq 4
            aload 2 /* appletClassLoader */
            ifnull 4
         3: .line 312
            aload 0 /* this */
            getstatic sun.awt.AWTPermissions.CHECK_AWT_EVENTQUEUE_PERMISSION:Ljava/awt/AWTPermission;
            invokespecial sun.awt.AWTSecurityManager.checkPermission:(Ljava/security/Permission;)V
         4: .line 314
      StackMap locals: sun.awt.AppContext sun.applet.AppletClassLoader
      StackMap stack:
            return
        end local 2 // sun.applet.AppletClassLoader appletClassLoader
        end local 1 // sun.awt.AppContext appContext
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            0    5     0               this  Lsun/applet/AppletSecurity;
            1    5     1         appContext  Lsun/awt/AppContext;
            2    5     2  appletClassLoader  Lsun/applet/AppletClassLoader;

  public java.lang.ThreadGroup getThreadGroup();
    descriptor: ()Ljava/lang/ThreadGroup;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=3, args_size=1
        start local 0 // sun.applet.AppletSecurity this
         0: .line 324
            aload 0 /* this */
            invokevirtual sun.applet.AppletSecurity.currentAppletClassLoader:()Lsun/applet/AppletClassLoader;
            astore 1 /* appletLoader */
        start local 1 // sun.applet.AppletClassLoader appletLoader
         1: .line 325
            aload 1 /* appletLoader */
            ifnonnull 2
            aconst_null
            goto 3
         2: .line 326
      StackMap locals: sun.applet.AppletClassLoader
      StackMap stack:
            aload 1 /* appletLoader */
            invokevirtual sun.applet.AppletClassLoader.getThreadGroup:()Ljava/lang/ThreadGroup;
         3: .line 325
      StackMap locals:
      StackMap stack: java.lang.ThreadGroup
            astore 2 /* loaderGroup */
        start local 2 // java.lang.ThreadGroup loaderGroup
         4: .line 327
            aload 2 /* loaderGroup */
            ifnull 6
         5: .line 328
            aload 2 /* loaderGroup */
            areturn
         6: .line 330
      StackMap locals: java.lang.ThreadGroup
      StackMap stack:
            aload 0 /* this */
            invokespecial sun.awt.AWTSecurityManager.getThreadGroup:()Ljava/lang/ThreadGroup;
            areturn
        end local 2 // java.lang.ThreadGroup loaderGroup
        end local 1 // sun.applet.AppletClassLoader appletLoader
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    7     0          this  Lsun/applet/AppletSecurity;
            1    7     1  appletLoader  Lsun/applet/AppletClassLoader;
            4    7     2   loaderGroup  Ljava/lang/ThreadGroup;

  public sun.awt.AppContext getAppContext();
    descriptor: ()Lsun/awt/AppContext;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // sun.applet.AppletSecurity this
         0: .line 347
            aload 0 /* this */
            invokevirtual sun.applet.AppletSecurity.currentAppletClassLoader:()Lsun/applet/AppletClassLoader;
            astore 1 /* appletLoader */
        start local 1 // sun.applet.AppletClassLoader appletLoader
         1: .line 349
            aload 1 /* appletLoader */
            ifnonnull 3
         2: .line 350
            aconst_null
            areturn
         3: .line 352
      StackMap locals: sun.applet.AppletClassLoader
      StackMap stack:
            aload 1 /* appletLoader */
            invokevirtual sun.applet.AppletClassLoader.getAppContext:()Lsun/awt/AppContext;
            astore 2 /* context */
        start local 2 // sun.awt.AppContext context
         4: .line 356
            aload 2 /* context */
            ifnonnull 6
         5: .line 357
            new java.lang.SecurityException
            dup
            ldc "Applet classloader has invalid AppContext"
            invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 360
      StackMap locals: sun.awt.AppContext
      StackMap stack:
            aload 2 /* context */
            areturn
        end local 2 // sun.awt.AppContext context
        end local 1 // sun.applet.AppletClassLoader appletLoader
        end local 0 // sun.applet.AppletSecurity this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    7     0          this  Lsun/applet/AppletSecurity;
            1    7     1  appletLoader  Lsun/applet/AppletClassLoader;
            4    7     2       context  Lsun/awt/AppContext;
}
SourceFile: "AppletSecurity.java"
NestMembers:
  sun.applet.AppletSecurity$1  sun.applet.AppletSecurity$2
InnerClasses:
  public final State = java.lang.Thread$State of java.lang.Thread
  sun.applet.AppletSecurity$1
  sun.applet.AppletSecurity$2