public class org.apache.cassandra.auth.AuthenticatedUser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.auth.AuthenticatedUser
super_class: java.lang.Object
{
public static final java.lang.String SYSTEM_USERNAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "system"
public static final org.apache.cassandra.auth.AuthenticatedUser SYSTEM_USER;
descriptor: Lorg/apache/cassandra/auth/AuthenticatedUser;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String ANONYMOUS_USERNAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "anonymous"
public static final org.apache.cassandra.auth.AuthenticatedUser ANONYMOUS_USER;
descriptor: Lorg/apache/cassandra/auth/AuthenticatedUser;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final org.apache.cassandra.auth.PermissionsCache permissionsCache;
descriptor: Lorg/apache/cassandra/auth/PermissionsCache;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.apache.cassandra.auth.RoleResource role;
descriptor: Lorg/apache/cassandra/auth/RoleResource;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.apache.cassandra.auth.AuthenticatedUser
dup
ldc "system"
invokespecial org.apache.cassandra.auth.AuthenticatedUser.<init>:(Ljava/lang/String;)V
putstatic org.apache.cassandra.auth.AuthenticatedUser.SYSTEM_USER:Lorg/apache/cassandra/auth/AuthenticatedUser;
1: new org.apache.cassandra.auth.AuthenticatedUser
dup
ldc "anonymous"
invokespecial org.apache.cassandra.auth.AuthenticatedUser.<init>:(Ljava/lang/String;)V
putstatic org.apache.cassandra.auth.AuthenticatedUser.ANONYMOUS_USER:Lorg/apache/cassandra/auth/AuthenticatedUser;
2: new org.apache.cassandra.auth.PermissionsCache
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getAuthorizer:()Lorg/apache/cassandra/auth/IAuthorizer;
invokespecial org.apache.cassandra.auth.PermissionsCache.<init>:(Lorg/apache/cassandra/auth/IAuthorizer;)V
putstatic org.apache.cassandra.auth.AuthenticatedUser.permissionsCache:Lorg/apache/cassandra/auth/PermissionsCache;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.cassandra.auth.AuthenticatedUser.name:Ljava/lang/String;
2: aload 0
aload 1
invokestatic org.apache.cassandra.auth.RoleResource.role:(Ljava/lang/String;)Lorg/apache/cassandra/auth/RoleResource;
putfield org.apache.cassandra.auth.AuthenticatedUser.role:Lorg/apache/cassandra/auth/RoleResource;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
0 4 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.AuthenticatedUser.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
public org.apache.cassandra.auth.RoleResource getPrimaryRole();
descriptor: ()Lorg/apache/cassandra/auth/RoleResource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.AuthenticatedUser.role:Lorg/apache/cassandra/auth/RoleResource;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
public boolean isSuper();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.auth.AuthenticatedUser.isAnonymous:()Z
ifne 1
aload 0
getfield org.apache.cassandra.auth.AuthenticatedUser.role:Lorg/apache/cassandra/auth/RoleResource;
invokestatic org.apache.cassandra.auth.Roles.hasSuperuserStatus:(Lorg/apache/cassandra/auth/RoleResource;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
public boolean isAnonymous();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.cassandra.auth.AuthenticatedUser.ANONYMOUS_USER:Lorg/apache/cassandra/auth/AuthenticatedUser;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
public boolean isSystem();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.cassandra.auth.AuthenticatedUser.SYSTEM_USER:Lorg/apache/cassandra/auth/AuthenticatedUser;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
public java.util.Set<org.apache.cassandra.auth.RoleResource> getRoles();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.auth.AuthenticatedUser.role:Lorg/apache/cassandra/auth/RoleResource;
invokestatic org.apache.cassandra.auth.Roles.getRoles:(Lorg/apache/cassandra/auth/RoleResource;)Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
Signature: ()Ljava/util/Set<Lorg/apache/cassandra/auth/RoleResource;>;
public java.util.Set<org.apache.cassandra.auth.Permission> getPermissions(org.apache.cassandra.auth.IResource);
descriptor: (Lorg/apache/cassandra/auth/IResource;)Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.auth.AuthenticatedUser.permissionsCache:Lorg/apache/cassandra/auth/PermissionsCache;
aload 0
aload 1
invokevirtual org.apache.cassandra.auth.PermissionsCache.getPermissions:(Lorg/apache/cassandra/auth/AuthenticatedUser;Lorg/apache/cassandra/auth/IResource;)Ljava/util/Set;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
0 1 1 resource Lorg/apache/cassandra/auth/IResource;
Signature: (Lorg/apache/cassandra/auth/IResource;)Ljava/util/Set<Lorg/apache/cassandra/auth/Permission;>;
MethodParameters:
Name Flags
resource
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "#<User %s>"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.auth.AuthenticatedUser.name:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.apache.cassandra.auth.AuthenticatedUser
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast org.apache.cassandra.auth.AuthenticatedUser
astore 2
start local 2 5: aload 0
getfield org.apache.cassandra.auth.AuthenticatedUser.name:Ljava/lang/String;
aload 2
getfield org.apache.cassandra.auth.AuthenticatedUser.name:Ljava/lang/String;
invokestatic com.google.common.base.Objects.equal:(Ljava/lang/Object;Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
0 6 1 o Ljava/lang/Object;
5 6 2 u Lorg/apache/cassandra/auth/AuthenticatedUser;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.auth.AuthenticatedUser.name:Ljava/lang/String;
aastore
invokestatic com.google.common.base.Objects.hashCode:([Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/auth/AuthenticatedUser;
}
SourceFile: "AuthenticatedUser.java"