public class org.apache.cassandra.auth.Roles
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.auth.Roles
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.cassandra.auth.RolesCache cache;
descriptor: Lorg/apache/cassandra/auth/RolesCache;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/auth/Roles;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.auth.Roles.logger:Lorg/slf4j/Logger;
1: new org.apache.cassandra.auth.RolesCache
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRoleManager:()Lorg/apache/cassandra/auth/IRoleManager;
invokespecial org.apache.cassandra.auth.RolesCache.<init>:(Lorg/apache/cassandra/auth/IRoleManager;)V
putstatic org.apache.cassandra.auth.Roles.cache:Lorg/apache/cassandra/auth/RolesCache;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/Roles;
public static java.util.Set<org.apache.cassandra.auth.RoleResource> getRoles(org.apache.cassandra.auth.RoleResource);
descriptor: (Lorg/apache/cassandra/auth/RoleResource;)Ljava/util/Set;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.auth.Roles.cache:Lorg/apache/cassandra/auth/RolesCache;
aload 0
invokevirtual org.apache.cassandra.auth.RolesCache.getRoles:(Lorg/apache/cassandra/auth/RoleResource;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 primaryRole Lorg/apache/cassandra/auth/RoleResource;
Signature: (Lorg/apache/cassandra/auth/RoleResource;)Ljava/util/Set<Lorg/apache/cassandra/auth/RoleResource;>;
MethodParameters:
Name Flags
primaryRole
public static boolean hasSuperuserStatus(org.apache.cassandra.auth.RoleResource);
descriptor: (Lorg/apache/cassandra/auth/RoleResource;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRoleManager:()Lorg/apache/cassandra/auth/IRoleManager;
astore 1
start local 1 1: getstatic org.apache.cassandra.auth.Roles.cache:Lorg/apache/cassandra/auth/RolesCache;
aload 0
invokevirtual org.apache.cassandra.auth.RolesCache.getRoles:(Lorg/apache/cassandra/auth/RoleResource;)Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.apache.cassandra.auth.RoleResource org.apache.cassandra.auth.IRoleManager top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.auth.RoleResource
astore 2
start local 2 3: aload 1
aload 2
invokeinterface org.apache.cassandra.auth.IRoleManager.isSuper:(Lorg/apache/cassandra/auth/RoleResource;)Z
ifeq 5
4: iconst_1
ireturn
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: iconst_0
ireturn
end local 1 7: StackMap locals: org.apache.cassandra.auth.RoleResource
StackMap stack: org.apache.cassandra.exceptions.RequestExecutionException
astore 1
start local 1 8: getstatic org.apache.cassandra.auth.Roles.logger:Lorg/slf4j/Logger;
ldc "Failed to authorize {} for super-user permission"
aload 0
invokevirtual org.apache.cassandra.auth.RoleResource.getRoleName:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
9: new org.apache.cassandra.exceptions.UnauthorizedException
dup
new java.lang.StringBuilder
dup
ldc "Unable to perform authorization of super-user permission: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual org.apache.cassandra.exceptions.RequestExecutionException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial org.apache.cassandra.exceptions.UnauthorizedException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 role Lorg/apache/cassandra/auth/RoleResource;
1 7 1 roleManager Lorg/apache/cassandra/auth/IRoleManager;
3 5 2 r Lorg/apache/cassandra/auth/RoleResource;
8 10 1 e Lorg/apache/cassandra/exceptions/RequestExecutionException;
Exception table:
from to target type
0 4 7 Class org.apache.cassandra.exceptions.RequestExecutionException
5 6 7 Class org.apache.cassandra.exceptions.RequestExecutionException
MethodParameters:
Name Flags
role
}
SourceFile: "Roles.java"