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: 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: 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: 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: 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: 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: 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: getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.installed:Z
ifeq 2
1: return
2: 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: invokestatic org.apache.cassandra.utils.logging.LoggingSupportFactory.getLoggingSupport:()Lorg/apache/cassandra/utils/logging/LoggingSupport;
invokeinterface org.apache.cassandra.utils.logging.LoggingSupport.onStartup:()V
4: iconst_1
putstatic org.apache.cassandra.security.ThreadAwareSecurityManager.installed:Z
5: 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 0: aload 0
invokespecial java.lang.SecurityManager.<init>:()V
1: return
end local 0 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: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getThreadGroup:()Ljava/lang/ThreadGroup;
astore 0
start local 0 1: aload 0
instanceof org.apache.cassandra.security.SecurityThreadGroup
ifne 3
2: iconst_0
ireturn
3: 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
start local 1 4: aload 1
ifnonnull 9
5: 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: aload 0
checkcast org.apache.cassandra.security.SecurityThreadGroup
invokevirtual org.apache.cassandra.security.SecurityThreadGroup.initializeThread:()V
7: 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: iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
astore 1
9: StackMap locals: java.lang.Boolean
StackMap stack:
aload 1
invokevirtual java.lang.Boolean.booleanValue:()Z
ireturn
end local 1 end local 0 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 start local 1 0: invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
ifeq 2
1: 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: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.lang.SecurityManager.checkAccess:(Ljava/lang/Thread;)V
3: return
end local 1 end local 0 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 start local 1 0: invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
ifeq 2
1: 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: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.lang.SecurityManager.checkAccess:(Ljava/lang/ThreadGroup;)V
3: return
end local 1 end local 0 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 start local 1 0: invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.security.ThreadAwareSecurityManager.CHECK_MEMBER_ACCESS_PERMISSION:Ljava/lang/RuntimePermission;
aload 1
invokevirtual java.lang.RuntimePermission.equals:(Ljava/lang/Object;)Z
ifeq 4
3: return
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
5: return
end local 1 end local 0 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 start local 1 start local 2 0: invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
ifeq 2
1: aload 0
aload 1
aload 2
invokespecial java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 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 start local 1 0: invokestatic org.apache.cassandra.security.ThreadAwareSecurityManager.isSecuredThread:()Z
ifne 2
1: return
2: 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
invokevirtual org.apache.cassandra.security.SecurityThreadGroup.isPackageAllowed:(Ljava/lang/String;)Z
ifne 5
3: new java.lang.RuntimePermission
dup
new java.lang.StringBuilder
dup
ldc "accessClassInPackage."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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
start local 2 4: new java.security.AccessControlException
dup
new java.lang.StringBuilder
dup
ldc "access denied: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial java.security.AccessControlException.<init>:(Ljava/lang/String;Ljava/security/Permission;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.lang.SecurityManager.checkPackageAccess:(Ljava/lang/String;)V
6: return
end local 1 end local 0 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