public final class org.apache.cassandra.security.ThreadAwareSecurityManager extends java.lang.SecurityManager
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: org.apache.cassandra.security.ThreadAwareSecurityManager
  super_class: java.lang.SecurityManager
{
  public static final java.security.PermissionCollection noPermissions;
    descriptor: Ljava/security/PermissionCollection;
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL

  private static final java.lang.RuntimePermission CHECK_MEMBER_ACCESS_PERMISSION;
    descriptor: Ljava/lang/RuntimePermission;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final java.lang.RuntimePermission MODIFY_THREAD_PERMISSION;
    descriptor: Ljava/lang/RuntimePermission;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final java.lang.RuntimePermission MODIFY_THREADGROUP_PERMISSION;
    descriptor: Ljava/lang/RuntimePermission;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static volatile boolean installed;
    descriptor: Z
    flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE

  private static final io.netty.util.concurrent.FastThreadLocal<java.lang.Boolean> initializedThread;
    descriptor: Lio/netty/util/concurrent/FastThreadLocal;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    Signature: Lio/netty/util/concurrent/FastThreadLocal<Ljava/lang/Boolean;>;

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 47
            new org.apache.cassandra.security.ThreadAwareSecurityManager$1
            dup
            invokespecial org.apache.cassandra.security.ThreadAwareSecurityManager$1.<init>:()V
            putstatic org.apache.cassandra.security.ThreadAwareSecurityManager.noPermissions:Ljava/security/PermissionCollection;
         1: .line 65
            new java.lang.RuntimePermission
            dup
            ldc "accessDeclaredMembers"
            invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
            putstatic org.apache.cassandra.security.ThreadAwareSecurityManager.CHECK_MEMBER_ACCESS_PERMISSION:Ljava/lang/RuntimePermission;
         2: .line 66
            new java.lang.RuntimePermission
            dup
            ldc "modifyThread"
            invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
            putstatic org.apache.cassandra.security.ThreadAwareSecurityManager.MODIFY_THREAD_PERMISSION:Ljava/lang/RuntimePermission;
         3: .line 67
            new java.lang.RuntimePermission
            dup
            ldc "modifyThreadGroup"
            invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
            putstatic org.apache.cassandra.security.ThreadAwareSecurityManager.MODIFY_THREADGROUP_PERMISSION:Ljava/lang/RuntimePermission;
         4: .line 93
            new org.apache.cassandra.security.ThreadAwareSecurityManager$2
            dup
            invokespecial org.apache.cassandra.security.ThreadAwareSecurityManager$2.<init>:()V
            invokestatic java.security.Policy.setPolicy:(Ljava/security/Policy;)V
         5: .line 140
            new io.netty.util.concurrent.FastThreadLocal
            dup
            invokespecial io.netty.util.concurrent.FastThreadLocal.<init>:()V
            putstatic org.apache.cassandra.security.ThreadAwareSecurityManager.initializedThread:Lio/netty/util/concurrent/FastThreadLocal;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public static void install();
    descriptor: ()V
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=0, args_size=0
         0: .line 73
            getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.installed:Z
            ifeq 2
         1: .line 74
            return
         2: .line 75
      StackMap locals:
      StackMap stack:
            new org.apache.cassandra.security.ThreadAwareSecurityManager
            dup
            invokespecial org.apache.cassandra.security.ThreadAwareSecurityManager.<init>:()V
            invokestatic java.lang.System.setSecurityManager:(Ljava/lang/SecurityManager;)V
         3: .line 76
            invokestatic org.apache.cassandra.utils.logging.LoggingSupportFactory.getLoggingSupport:()Lorg/apache/cassandra/utils/logging/LoggingSupport;
            invokeinterface org.apache.cassandra.utils.logging.LoggingSupport.onStartup:()V
         4: .line 77
            iconst_1
            putstatic org.apache.cassandra.security.ThreadAwareSecurityManager.installed:Z
         5: .line 78
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
         0: .line 142
            aload 0 /* this */
            invokespecial java.lang.SecurityManager.<init>:()V
         1: .line 144
            return
        end local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lorg/apache/cassandra/security/ThreadAwareSecurityManager;

  public static boolean isSecuredThread();
    descriptor: ()Z
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=2, args_size=0
         0: .line 148
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
            astore 0 /* tg */
        start local 0 // java.lang.ThreadGroup tg
         1: .line 149
            aload 0 /* tg */
            instanceof org.apache.cassandra.security.SecurityThreadGroup
            ifne 3
         2: .line 150
            iconst_0
            ireturn
         3: .line 151
      StackMap locals: java.lang.ThreadGroup
      StackMap stack:
            getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.initializedThread:Lio/netty/util/concurrent/FastThreadLocal;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
            checkcast java.lang.Boolean
            astore 1 /* threadInitialized */
        start local 1 // java.lang.Boolean threadInitialized
         4: .line 152
            aload 1 /* threadInitialized */
            ifnonnull 9
         5: .line 154
            getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.initializedThread:Lio/netty/util/concurrent/FastThreadLocal;
            iconst_0
            invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.set:(Ljava/lang/Object;)V
         6: .line 155
            aload 0 /* tg */
            checkcast org.apache.cassandra.security.SecurityThreadGroup
            invokevirtual org.apache.cassandra.security.SecurityThreadGroup.initializeThread:()V
         7: .line 156
            getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.initializedThread:Lio/netty/util/concurrent/FastThreadLocal;
            iconst_1
            invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
            invokevirtual io.netty.util.concurrent.FastThreadLocal.set:(Ljava/lang/Object;)V
         8: .line 157
            iconst_1
            invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
            astore 1 /* threadInitialized */
         9: .line 159
      StackMap locals: java.lang.Boolean
      StackMap stack:
            aload 1 /* threadInitialized */
            invokevirtual java.lang.Boolean.booleanValue:()Z
            ireturn
        end local 1 // java.lang.Boolean threadInitialized
        end local 0 // java.lang.ThreadGroup tg
      LocalVariableTable:
        Start  End  Slot               Name  Signature
            1   10     0                 tg  Ljava/lang/ThreadGroup;
            4   10     1  threadInitialized  Ljava/lang/Boolean;

  public void checkAccess(java.lang.Thread);
    descriptor: (Ljava/lang/Thread;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
        start local 1 // java.lang.Thread t
         0: .line 167
            invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
            ifeq 2
         1: .line 168
            new java.security.AccessControlException
            dup
            new java.lang.StringBuilder
            dup
            ldc "access denied: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.MODIFY_THREAD_PERMISSION:Ljava/lang/RuntimePermission;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.MODIFY_THREAD_PERMISSION:Ljava/lang/RuntimePermission;
            invokespecial java.security.AccessControlException.<init>:(Ljava/lang/String;Ljava/security/Permission;)V
            athrow
         2: .line 169
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* t */
            invokespecial java.lang.SecurityManager.checkAccess:(Ljava/lang/Thread;)V
         3: .line 170
            return
        end local 1 // java.lang.Thread t
        end local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/apache/cassandra/security/ThreadAwareSecurityManager;
            0    4     1     t  Ljava/lang/Thread;
    MethodParameters:
      Name  Flags
      t     

  public void checkAccess(java.lang.ThreadGroup);
    descriptor: (Ljava/lang/ThreadGroup;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
        start local 1 // java.lang.ThreadGroup g
         0: .line 177
            invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
            ifeq 2
         1: .line 178
            new java.security.AccessControlException
            dup
            new java.lang.StringBuilder
            dup
            ldc "access denied: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.MODIFY_THREADGROUP_PERMISSION:Ljava/lang/RuntimePermission;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.MODIFY_THREADGROUP_PERMISSION:Ljava/lang/RuntimePermission;
            invokespecial java.security.AccessControlException.<init>:(Ljava/lang/String;Ljava/security/Permission;)V
            athrow
         2: .line 179
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* g */
            invokespecial java.lang.SecurityManager.checkAccess:(Ljava/lang/ThreadGroup;)V
         3: .line 180
            return
        end local 1 // java.lang.ThreadGroup g
        end local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/apache/cassandra/security/ThreadAwareSecurityManager;
            0    4     1     g  Ljava/lang/ThreadGroup;
    MethodParameters:
      Name  Flags
      g     

  public void checkPermission(java.security.Permission);
    descriptor: (Ljava/security/Permission;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
        start local 1 // java.security.Permission perm
         0: .line 184
            invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
            ifne 2
         1: .line 185
            return
         2: .line 189
      StackMap locals:
      StackMap stack:
            getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.CHECK_MEMBER_ACCESS_PERMISSION:Ljava/lang/RuntimePermission;
            aload 1 /* perm */
            invokevirtual java.lang.RuntimePermission.equals:(Ljava/lang/Object;)Z
            ifeq 4
         3: .line 190
            return
         4: .line 192
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* perm */
            invokespecial java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
         5: .line 193
            return
        end local 1 // java.security.Permission perm
        end local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/apache/cassandra/security/ThreadAwareSecurityManager;
            0    6     1  perm  Ljava/security/Permission;
    MethodParameters:
      Name  Flags
      perm  

  public void checkPermission(java.security.Permission, java.lang.Object);
    descriptor: (Ljava/security/Permission;Ljava/lang/Object;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
        start local 1 // java.security.Permission perm
        start local 2 // java.lang.Object context
         0: .line 197
            invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
            ifeq 2
         1: .line 198
            aload 0 /* this */
            aload 1 /* perm */
            aload 2 /* context */
            invokespecial java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;Ljava/lang/Object;)V
         2: .line 199
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.lang.Object context
        end local 1 // java.security.Permission perm
        end local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    3     0     this  Lorg/apache/cassandra/security/ThreadAwareSecurityManager;
            0    3     1     perm  Ljava/security/Permission;
            0    3     2  context  Ljava/lang/Object;
    MethodParameters:
         Name  Flags
      perm     
      context  

  public void checkPackageAccess(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
        start local 1 // java.lang.String pkg
         0: .line 203
            invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
            ifne 2
         1: .line 204
            return
         2: .line 206
      StackMap locals:
      StackMap stack:
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
            checkcast org.apache.cassandra.security.SecurityThreadGroup
            aload 1 /* pkg */
            invokevirtual org.apache.cassandra.security.SecurityThreadGroup.isPackageAllowed:(Ljava/lang/String;)Z
            ifne 5
         3: .line 208
            new java.lang.RuntimePermission
            dup
            new java.lang.StringBuilder
            dup
            ldc "accessClassInPackage."
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* pkg */
            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
            astore 2 /* perm */
        start local 2 // java.lang.RuntimePermission perm
         4: .line 209
            new java.security.AccessControlException
            dup
            new java.lang.StringBuilder
            dup
            ldc "access denied: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 2 /* perm */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            aload 2 /* perm */
            invokespecial java.security.AccessControlException.<init>:(Ljava/lang/String;Ljava/security/Permission;)V
            athrow
        end local 2 // java.lang.RuntimePermission perm
         5: .line 212
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* pkg */
            invokespecial java.lang.SecurityManager.checkPackageAccess:(Ljava/lang/String;)V
         6: .line 213
            return
        end local 1 // java.lang.String pkg
        end local 0 // org.apache.cassandra.security.ThreadAwareSecurityManager this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lorg/apache/cassandra/security/ThreadAwareSecurityManager;
            0    7     1   pkg  Ljava/lang/String;
            4    5     2  perm  Ljava/lang/RuntimePermission;
    MethodParameters:
      Name  Flags
      pkg   
}
SourceFile: "ThreadAwareSecurityManager.java"
NestMembers:
  org.apache.cassandra.security.ThreadAwareSecurityManager$1  org.apache.cassandra.security.ThreadAwareSecurityManager$2
InnerClasses:
  org.apache.cassandra.security.ThreadAwareSecurityManager$1
  org.apache.cassandra.security.ThreadAwareSecurityManager$2