public final class org.apache.cassandra.auth.AuthConfig
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.auth.AuthConfig
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 boolean initialized;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/auth/AuthConfig;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.auth.AuthConfig.logger:Lorg/slf4j/Logger;
1: 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/AuthConfig;
public static void applyAuth();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=0
0: getstatic org.apache.cassandra.auth.AuthConfig.initialized:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
iconst_1
putstatic org.apache.cassandra.auth.AuthConfig.initialized:Z
3: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRawConfig:()Lorg/apache/cassandra/config/Config;
astore 0
start local 0 4: new org.apache.cassandra.auth.AllowAllAuthenticator
dup
invokespecial org.apache.cassandra.auth.AllowAllAuthenticator.<init>:()V
astore 1
start local 1 5: aload 0
getfield org.apache.cassandra.config.Config.authenticator:Ljava/lang/String;
ifnull 7
6: aload 0
getfield org.apache.cassandra.config.Config.authenticator:Ljava/lang/String;
invokestatic org.apache.cassandra.utils.FBUtilities.newAuthenticator:(Ljava/lang/String;)Lorg/apache/cassandra/auth/IAuthenticator;
astore 1
7: StackMap locals: org.apache.cassandra.config.Config org.apache.cassandra.auth.IAuthenticator
StackMap stack:
aload 1
instanceof org.apache.cassandra.auth.PasswordAuthenticator
ifne 14
8: aload 0
getfield org.apache.cassandra.config.Config.credentials_update_interval_in_ms:I
iconst_m1
if_icmpne 11
9: aload 0
getfield org.apache.cassandra.config.Config.credentials_validity_in_ms:I
sipush 2000
if_icmpne 11
10: aload 0
getfield org.apache.cassandra.config.Config.credentials_cache_max_entries:I
sipush 1000
if_icmpeq 14
11: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.auth.AuthConfig.logger:Lorg/slf4j/Logger;
ldc "Configuration options credentials_update_interval_in_ms, credentials_validity_in_ms and credentials_cache_max_entries may not be applicable for the configured authenticator ({})"
12: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
13: invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
14: StackMap locals:
StackMap stack:
aload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setAuthenticator:(Lorg/apache/cassandra/auth/IAuthenticator;)V
15: new org.apache.cassandra.auth.AllowAllAuthorizer
dup
invokespecial org.apache.cassandra.auth.AllowAllAuthorizer.<init>:()V
astore 2
start local 2 16: aload 0
getfield org.apache.cassandra.config.Config.authorizer:Ljava/lang/String;
ifnull 18
17: aload 0
getfield org.apache.cassandra.config.Config.authorizer:Ljava/lang/String;
invokestatic org.apache.cassandra.utils.FBUtilities.newAuthorizer:(Ljava/lang/String;)Lorg/apache/cassandra/auth/IAuthorizer;
astore 2
18: StackMap locals: org.apache.cassandra.auth.IAuthorizer
StackMap stack:
aload 1
invokeinterface org.apache.cassandra.auth.IAuthenticator.requireAuthentication:()Z
ifne 20
aload 2
invokeinterface org.apache.cassandra.auth.IAuthorizer.requireAuthorization:()Z
ifeq 20
19: new org.apache.cassandra.exceptions.ConfigurationException
dup
new java.lang.StringBuilder
dup
aload 0
getfield org.apache.cassandra.config.Config.authenticator:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " can't be used with "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.cassandra.config.Config.authorizer:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;Z)V
athrow
20: StackMap locals:
StackMap stack:
aload 2
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setAuthorizer:(Lorg/apache/cassandra/auth/IAuthorizer;)V
21: aload 0
getfield org.apache.cassandra.config.Config.role_manager:Ljava/lang/String;
ifnull 24
22: aload 0
getfield org.apache.cassandra.config.Config.role_manager:Ljava/lang/String;
invokestatic org.apache.cassandra.utils.FBUtilities.newRoleManager:(Ljava/lang/String;)Lorg/apache/cassandra/auth/IRoleManager;
astore 3
start local 3 23: goto 25
end local 3 24: StackMap locals:
StackMap stack:
new org.apache.cassandra.auth.CassandraRoleManager
dup
invokespecial org.apache.cassandra.auth.CassandraRoleManager.<init>:()V
astore 3
start local 3 25: StackMap locals: org.apache.cassandra.auth.IRoleManager
StackMap stack:
aload 1
instanceof org.apache.cassandra.auth.PasswordAuthenticator
ifeq 27
aload 3
instanceof org.apache.cassandra.auth.CassandraRoleManager
ifne 27
26: new org.apache.cassandra.exceptions.ConfigurationException
dup
ldc "CassandraRoleManager must be used with PasswordAuthenticator"
iconst_0
invokespecial org.apache.cassandra.exceptions.ConfigurationException.<init>:(Ljava/lang/String;Z)V
athrow
27: StackMap locals:
StackMap stack:
aload 3
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setRoleManager:(Lorg/apache/cassandra/auth/IRoleManager;)V
28: aload 0
getfield org.apache.cassandra.config.Config.internode_authenticator:Ljava/lang/String;
ifnull 31
29: aload 0
getfield org.apache.cassandra.config.Config.internode_authenticator:Ljava/lang/String;
ldc "internode_authenticator"
invokestatic org.apache.cassandra.utils.FBUtilities.construct:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
checkcast org.apache.cassandra.auth.IInternodeAuthenticator
astore 4
start local 4 30: goto 32
end local 4 31: StackMap locals:
StackMap stack:
new org.apache.cassandra.auth.AllowAllInternodeAuthenticator
dup
invokespecial org.apache.cassandra.auth.AllowAllInternodeAuthenticator.<init>:()V
astore 4
start local 4 32: StackMap locals: org.apache.cassandra.auth.IInternodeAuthenticator
StackMap stack:
aload 4
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setInternodeAuthenticator:(Lorg/apache/cassandra/auth/IInternodeAuthenticator;)V
33: aload 1
invokeinterface org.apache.cassandra.auth.IAuthenticator.validateConfiguration:()V
34: aload 2
invokeinterface org.apache.cassandra.auth.IAuthorizer.validateConfiguration:()V
35: aload 3
invokeinterface org.apache.cassandra.auth.IRoleManager.validateConfiguration:()V
36: aload 4
invokeinterface org.apache.cassandra.auth.IInternodeAuthenticator.validateConfiguration:()V
37: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
4 38 0 conf Lorg/apache/cassandra/config/Config;
5 38 1 authenticator Lorg/apache/cassandra/auth/IAuthenticator;
16 38 2 authorizer Lorg/apache/cassandra/auth/IAuthorizer;
23 24 3 roleManager Lorg/apache/cassandra/auth/IRoleManager;
25 38 3 roleManager Lorg/apache/cassandra/auth/IRoleManager;
30 31 4 internodeAuthenticator Lorg/apache/cassandra/auth/IInternodeAuthenticator;
32 38 4 internodeAuthenticator Lorg/apache/cassandra/auth/IInternodeAuthenticator;
}
SourceFile: "AuthConfig.java"