public class org.apache.catalina.realm.DataSourceRealm extends org.apache.catalina.realm.RealmBase
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.catalina.realm.DataSourceRealm
super_class: org.apache.catalina.realm.RealmBase
{
private java.lang.String preparedRoles;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String preparedCredentials;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
protected java.lang.String dataSourceName;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected boolean localDataSource;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
protected java.lang.String roleNameCol;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.lang.String userCredCol;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.lang.String userNameCol;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.lang.String userRoleTable;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.lang.String userTable;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
private volatile boolean connectionSuccess;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.apache.catalina.realm.RealmBase.<init>:()V
1: aload 0
aconst_null
putfield org.apache.catalina.realm.DataSourceRealm.preparedRoles:Ljava/lang/String;
2: aload 0
aconst_null
putfield org.apache.catalina.realm.DataSourceRealm.preparedCredentials:Ljava/lang/String;
3: aload 0
aconst_null
putfield org.apache.catalina.realm.DataSourceRealm.dataSourceName:Ljava/lang/String;
4: aload 0
iconst_0
putfield org.apache.catalina.realm.DataSourceRealm.localDataSource:Z
5: aload 0
aconst_null
putfield org.apache.catalina.realm.DataSourceRealm.roleNameCol:Ljava/lang/String;
6: aload 0
aconst_null
putfield org.apache.catalina.realm.DataSourceRealm.userCredCol:Ljava/lang/String;
7: aload 0
aconst_null
putfield org.apache.catalina.realm.DataSourceRealm.userNameCol:Ljava/lang/String;
8: aload 0
aconst_null
putfield org.apache.catalina.realm.DataSourceRealm.userRoleTable:Ljava/lang/String;
9: aload 0
aconst_null
putfield org.apache.catalina.realm.DataSourceRealm.userTable:Ljava/lang/String;
10: aload 0
iconst_1
putfield org.apache.catalina.realm.DataSourceRealm.connectionSuccess:Z
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/catalina/realm/DataSourceRealm;
public java.lang.String getDataSourceName();
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.catalina.realm.DataSourceRealm.dataSourceName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DataSourceRealm;
public void setDataSourceName(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
aload 1
putfield org.apache.catalina.realm.DataSourceRealm.dataSourceName:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 2 1 dataSourceName Ljava/lang/String;
MethodParameters:
Name Flags
dataSourceName
public boolean getLocalDataSource();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.localDataSource:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DataSourceRealm;
public void setLocalDataSource(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.apache.catalina.realm.DataSourceRealm.localDataSource:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 2 1 localDataSource Z
MethodParameters:
Name Flags
localDataSource
public java.lang.String getRoleNameCol();
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.catalina.realm.DataSourceRealm.roleNameCol:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DataSourceRealm;
public void setRoleNameCol(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
aload 1
putfield org.apache.catalina.realm.DataSourceRealm.roleNameCol:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 2 1 roleNameCol Ljava/lang/String;
MethodParameters:
Name Flags
roleNameCol
public java.lang.String getUserCredCol();
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.catalina.realm.DataSourceRealm.userCredCol:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DataSourceRealm;
public void setUserCredCol(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
aload 1
putfield org.apache.catalina.realm.DataSourceRealm.userCredCol:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 2 1 userCredCol Ljava/lang/String;
MethodParameters:
Name Flags
userCredCol
public java.lang.String getUserNameCol();
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.catalina.realm.DataSourceRealm.userNameCol:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DataSourceRealm;
public void setUserNameCol(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
aload 1
putfield org.apache.catalina.realm.DataSourceRealm.userNameCol:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 2 1 userNameCol Ljava/lang/String;
MethodParameters:
Name Flags
userNameCol
public java.lang.String getUserRoleTable();
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.catalina.realm.DataSourceRealm.userRoleTable:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DataSourceRealm;
public void setUserRoleTable(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
aload 1
putfield org.apache.catalina.realm.DataSourceRealm.userRoleTable:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 2 1 userRoleTable Ljava/lang/String;
MethodParameters:
Name Flags
userRoleTable
public java.lang.String getUserTable();
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.catalina.realm.DataSourceRealm.userTable:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DataSourceRealm;
public void setUserTable(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
aload 1
putfield org.apache.catalina.realm.DataSourceRealm.userTable:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 2 1 userTable Ljava/lang/String;
MethodParameters:
Name Flags
userTable
public java.security.Principal authenticate(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/security/Principal;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 2
ifnonnull 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 3: aload 0
invokevirtual org.apache.catalina.realm.DataSourceRealm.open:()Ljava/sql/Connection;
astore 3
4: aload 3
ifnonnull 6
5: aconst_null
areturn
6: StackMap locals: java.sql.Connection
StackMap stack:
aload 0
aload 3
aload 1
aload 2
invokevirtual org.apache.catalina.realm.DataSourceRealm.authenticate:(Ljava/sql/Connection;Ljava/lang/String;Ljava/lang/String;)Ljava/security/Principal;
astore 5
7: aload 0
aload 3
invokevirtual org.apache.catalina.realm.DataSourceRealm.close:(Ljava/sql/Connection;)V
8: aload 5
areturn
9: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
10: aload 0
aload 3
invokevirtual org.apache.catalina.realm.DataSourceRealm.close:(Ljava/sql/Connection;)V
11: aload 4
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 12 1 username Ljava/lang/String;
0 12 2 credentials Ljava/lang/String;
3 12 3 dbConnection Ljava/sql/Connection;
Exception table:
from to target type
6 7 9 any
MethodParameters:
Name Flags
username
credentials
public boolean isAvailable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.connectionSuccess:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DataSourceRealm;
protected java.security.Principal authenticate(java.sql.Connection, java.lang.String, java.lang.String);
descriptor: (Ljava/sql/Connection;Ljava/lang/String;Ljava/lang/String;)Ljava/security/Principal;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnull 1
aload 3
ifnonnull 6
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isTraceEnabled:()Z
ifeq 5
2: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.DataSourceRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "dataSourceRealm.authenticateFailure"
iconst_1
anewarray java.lang.Object
dup
iconst_0
3: aload 2
aastore
4: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.trace:(Ljava/lang/Object;)V
5: StackMap locals:
StackMap stack:
aconst_null
areturn
6: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.apache.catalina.realm.DataSourceRealm.getPassword:(Ljava/sql/Connection;Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 7: aload 4
ifnonnull 14
8: aload 0
invokevirtual org.apache.catalina.realm.DataSourceRealm.getCredentialHandler:()Lorg/apache/catalina/CredentialHandler;
aload 3
invokeinterface org.apache.catalina.CredentialHandler.mutate:(Ljava/lang/String;)Ljava/lang/String;
pop
9: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isTraceEnabled:()Z
ifeq 13
10: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.DataSourceRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "dataSourceRealm.authenticateFailure"
iconst_1
anewarray java.lang.Object
dup
iconst_0
11: aload 2
aastore
12: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.trace:(Ljava/lang/Object;)V
13: StackMap locals: java.lang.String
StackMap stack:
aconst_null
areturn
14: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.catalina.realm.DataSourceRealm.getCredentialHandler:()Lorg/apache/catalina/CredentialHandler;
aload 3
aload 4
invokeinterface org.apache.catalina.CredentialHandler.matches:(Ljava/lang/String;Ljava/lang/String;)Z
istore 5
start local 5 15: iload 5
ifeq 21
16: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isTraceEnabled:()Z
ifeq 26
17: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.DataSourceRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "dataSourceRealm.authenticateSuccess"
iconst_1
anewarray java.lang.Object
dup
iconst_0
18: aload 2
aastore
19: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.trace:(Ljava/lang/Object;)V
20: goto 26
21: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isTraceEnabled:()Z
ifeq 25
22: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.DataSourceRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "dataSourceRealm.authenticateFailure"
iconst_1
anewarray java.lang.Object
dup
iconst_0
23: aload 2
aastore
24: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.trace:(Ljava/lang/Object;)V
25: StackMap locals:
StackMap stack:
aconst_null
areturn
26: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.apache.catalina.realm.DataSourceRealm.getRoles:(Ljava/sql/Connection;Ljava/lang/String;)Ljava/util/ArrayList;
astore 6
start local 6 27: new org.apache.catalina.realm.GenericPrincipal
dup
aload 2
aload 6
invokespecial org.apache.catalina.realm.GenericPrincipal.<init>:(Ljava/lang/String;Ljava/util/List;)V
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 28 1 dbConnection Ljava/sql/Connection;
0 28 2 username Ljava/lang/String;
0 28 3 credentials Ljava/lang/String;
7 28 4 dbCredentials Ljava/lang/String;
15 28 5 validated Z
27 28 6 list Ljava/util/ArrayList<Ljava/lang/String;>;
MethodParameters:
Name Flags
dbConnection
username
credentials
protected void close(java.sql.Connection);
descriptor: (Ljava/sql/Connection;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.sql.Connection.getAutoCommit:()Z
ifne 7
3: aload 1
invokeinterface java.sql.Connection.commit:()V
4: goto 7
StackMap locals:
StackMap stack: java.sql.SQLException
5: astore 2
start local 2 6: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
ldc "Exception committing connection before closing:"
aload 2
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 2 7: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.sql.Connection.close:()V
8: goto 11
StackMap locals:
StackMap stack: java.sql.SQLException
9: astore 2
start local 2 10: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.DataSourceRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "dataSourceRealm.close"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 2
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 2 11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 12 1 dbConnection Ljava/sql/Connection;
6 7 2 e Ljava/sql/SQLException;
10 11 2 e Ljava/sql/SQLException;
Exception table:
from to target type
2 4 5 Class java.sql.SQLException
7 8 9 Class java.sql.SQLException
MethodParameters:
Name Flags
dbConnection
protected java.sql.Connection open();
descriptor: ()Ljava/sql/Connection;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.localDataSource:Z
ifeq 5
2: invokestatic org.apache.naming.ContextBindings.getClassLoader:()Ljavax/naming/Context;
astore 1
3: aload 1
ldc "comp/env"
invokeinterface javax.naming.Context.lookup:(Ljava/lang/String;)Ljava/lang/Object;
checkcast javax.naming.Context
astore 1
4: goto 6
5: StackMap locals: javax.naming.Context
StackMap stack:
aload 0
invokevirtual org.apache.catalina.realm.DataSourceRealm.getServer:()Lorg/apache/catalina/Server;
invokeinterface org.apache.catalina.Server.getGlobalNamingContext:()Ljavax/naming/Context;
astore 1
6: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.dataSourceName:Ljava/lang/String;
invokeinterface javax.naming.Context.lookup:(Ljava/lang/String;)Ljava/lang/Object;
checkcast javax.sql.DataSource
astore 2
start local 2 7: aload 2
invokeinterface javax.sql.DataSource.getConnection:()Ljava/sql/Connection;
astore 3
start local 3 8: aload 0
iconst_1
putfield org.apache.catalina.realm.DataSourceRealm.connectionSuccess:Z
9: aload 3
10: areturn
end local 3 end local 2 end local 1 11: StackMap locals: org.apache.catalina.realm.DataSourceRealm
StackMap stack: java.lang.Exception
astore 1
start local 1 12: aload 0
iconst_0
putfield org.apache.catalina.realm.DataSourceRealm.connectionSuccess:Z
13: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.DataSourceRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "dataSourceRealm.exception"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 1
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 1 14: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/catalina/realm/DataSourceRealm;
1 11 1 context Ljavax/naming/Context;
7 11 2 dataSource Ljavax/sql/DataSource;
8 11 3 connection Ljava/sql/Connection;
12 14 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 10 11 Class java.lang.Exception
protected java.lang.String getPassword(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
invokevirtual org.apache.catalina.realm.DataSourceRealm.open:()Ljava/sql/Connection;
astore 2
2: aload 2
ifnonnull 4
3: aconst_null
areturn
4: StackMap locals: java.sql.Connection
StackMap stack:
aload 0
aload 2
aload 1
invokevirtual org.apache.catalina.realm.DataSourceRealm.getPassword:(Ljava/sql/Connection;Ljava/lang/String;)Ljava/lang/String;
astore 4
5: aload 0
aload 2
invokevirtual org.apache.catalina.realm.DataSourceRealm.close:(Ljava/sql/Connection;)V
6: aload 4
areturn
7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
8: aload 0
aload 2
invokevirtual org.apache.catalina.realm.DataSourceRealm.close:(Ljava/sql/Connection;)V
9: aload 3
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 10 1 username Ljava/lang/String;
1 10 2 dbConnection Ljava/sql/Connection;
Exception table:
from to target type
4 5 7 any
MethodParameters:
Name Flags
username
protected java.lang.String getPassword(java.sql.Connection, java.lang.String);
descriptor: (Ljava/sql/Connection;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aconst_null
astore 4
aconst_null
astore 5
2: aload 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.preparedCredentials:Ljava/lang/String;
invokeinterface java.sql.Connection.prepareStatement:(Ljava/lang/String;)Ljava/sql/PreparedStatement;
astore 6
start local 6 3: aload 6
iconst_1
aload 2
invokeinterface java.sql.PreparedStatement.setString:(ILjava/lang/String;)V
4: aconst_null
astore 7
aconst_null
astore 8
5: aload 6
invokeinterface java.sql.PreparedStatement.executeQuery:()Ljava/sql/ResultSet;
astore 9
start local 9 6: aload 9
invokeinterface java.sql.ResultSet.next:()Z
ifeq 8
7: aload 9
iconst_1
invokeinterface java.sql.ResultSet.getString:(I)Ljava/lang/String;
astore 3
8: StackMap locals: org.apache.catalina.realm.DataSourceRealm java.sql.Connection java.lang.String java.lang.String java.lang.Throwable java.lang.Throwable java.sql.PreparedStatement java.lang.Throwable java.lang.Throwable java.sql.ResultSet
StackMap stack:
aload 3
ifnull 9
aload 3
invokevirtual java.lang.String.trim:()Ljava/lang/String;
goto 10
StackMap locals:
StackMap stack:
9: aconst_null
10: StackMap locals:
StackMap stack: java.lang.String
aload 9
ifnull 11
aload 9
invokeinterface java.sql.ResultSet.close:()V
11: StackMap locals:
StackMap stack: java.lang.String
aload 6
ifnull 12
aload 6
invokeinterface java.sql.PreparedStatement.close:()V
12: StackMap locals:
StackMap stack: java.lang.String
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 7
14: aload 9
ifnull 15
aload 9
invokeinterface java.sql.ResultSet.close:()V
end local 9 StackMap locals:
StackMap stack:
15: aload 7
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 8
aload 7
ifnonnull 17
aload 8
astore 7
goto 18
StackMap locals:
StackMap stack:
17: aload 7
aload 8
if_acmpeq 18
aload 7
aload 8
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 7
athrow
StackMap locals: org.apache.catalina.realm.DataSourceRealm java.sql.Connection java.lang.String java.lang.String java.lang.Throwable java.lang.Throwable java.sql.PreparedStatement
StackMap stack: java.lang.Throwable
19: astore 4
20: aload 6
ifnull 21
aload 6
invokeinterface java.sql.PreparedStatement.close:()V
end local 6 StackMap locals:
StackMap stack:
21: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
22: astore 5
aload 4
ifnonnull 23
aload 5
astore 4
goto 24
StackMap locals:
StackMap stack:
23: aload 4
aload 5
if_acmpeq 24
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
24: aload 4
athrow
StackMap locals: org.apache.catalina.realm.DataSourceRealm java.sql.Connection java.lang.String java.lang.String
StackMap stack: java.sql.SQLException
25: astore 4
start local 4 26: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.DataSourceRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "dataSourceRealm.getPassword.exception"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 4 27: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 28 1 dbConnection Ljava/sql/Connection;
0 28 2 username Ljava/lang/String;
1 28 3 dbCredentials Ljava/lang/String;
3 21 6 stmt Ljava/sql/PreparedStatement;
6 15 9 rs Ljava/sql/ResultSet;
26 27 4 e Ljava/sql/SQLException;
Exception table:
from to target type
6 10 13 any
5 11 16 any
13 16 16 any
3 11 19 any
13 19 19 any
2 12 22 any
13 22 22 any
1 12 25 Class java.sql.SQLException
13 25 25 Class java.sql.SQLException
MethodParameters:
Name Flags
dbConnection
username
protected java.security.Principal getPrincipal(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/security/Principal;
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.catalina.realm.DataSourceRealm.open:()Ljava/sql/Connection;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new org.apache.catalina.realm.GenericPrincipal
dup
aload 1
aconst_null
invokespecial org.apache.catalina.realm.GenericPrincipal.<init>:(Ljava/lang/String;Ljava/util/List;)V
areturn
3: StackMap locals: java.sql.Connection
StackMap stack:
new org.apache.catalina.realm.GenericPrincipal
dup
aload 1
4: aload 0
aload 2
aload 1
invokevirtual org.apache.catalina.realm.DataSourceRealm.getRoles:(Ljava/sql/Connection;Ljava/lang/String;)Ljava/util/ArrayList;
5: invokespecial org.apache.catalina.realm.GenericPrincipal.<init>:(Ljava/lang/String;Ljava/util/List;)V
astore 4
6: aload 0
aload 2
invokevirtual org.apache.catalina.realm.DataSourceRealm.close:(Ljava/sql/Connection;)V
7: aload 4
areturn
8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
9: aload 0
aload 2
invokevirtual org.apache.catalina.realm.DataSourceRealm.close:(Ljava/sql/Connection;)V
10: aload 3
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 11 1 username Ljava/lang/String;
1 11 2 dbConnection Ljava/sql/Connection;
Exception table:
from to target type
3 6 8 any
MethodParameters:
Name Flags
username
protected java.util.ArrayList<java.lang.String> getRoles(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/ArrayList;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
invokevirtual org.apache.catalina.realm.DataSourceRealm.open:()Ljava/sql/Connection;
astore 2
2: aload 2
ifnonnull 4
3: aconst_null
areturn
4: StackMap locals: java.sql.Connection
StackMap stack:
aload 0
aload 2
aload 1
invokevirtual org.apache.catalina.realm.DataSourceRealm.getRoles:(Ljava/sql/Connection;Ljava/lang/String;)Ljava/util/ArrayList;
astore 4
5: aload 0
aload 2
invokevirtual org.apache.catalina.realm.DataSourceRealm.close:(Ljava/sql/Connection;)V
6: aload 4
areturn
7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
8: aload 0
aload 2
invokevirtual org.apache.catalina.realm.DataSourceRealm.close:(Ljava/sql/Connection;)V
9: aload 3
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 10 1 username Ljava/lang/String;
1 10 2 dbConnection Ljava/sql/Connection;
Exception table:
from to target type
4 5 7 any
Signature: (Ljava/lang/String;)Ljava/util/ArrayList<Ljava/lang/String;>;
MethodParameters:
Name Flags
username
protected java.util.ArrayList<java.lang.String> getRoles(java.sql.Connection, java.lang.String);
descriptor: (Ljava/sql/Connection;Ljava/lang/String;)Ljava/util/ArrayList;
flags: (0x0004) ACC_PROTECTED
Code:
stack=7, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.allRolesMode:Lorg/apache/catalina/realm/RealmBase$AllRolesMode;
getstatic org.apache.catalina.realm.RealmBase$AllRolesMode.STRICT_MODE:Lorg/apache/catalina/realm/RealmBase$AllRolesMode;
if_acmpeq 2
aload 0
invokevirtual org.apache.catalina.realm.DataSourceRealm.isRoleStoreDefined:()Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 3
start local 3 3: aconst_null
astore 4
aconst_null
astore 5
4: aload 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.preparedRoles:Ljava/lang/String;
invokeinterface java.sql.Connection.prepareStatement:(Ljava/lang/String;)Ljava/sql/PreparedStatement;
astore 6
start local 6 5: aload 6
iconst_1
aload 2
invokeinterface java.sql.PreparedStatement.setString:(ILjava/lang/String;)V
6: aconst_null
astore 7
aconst_null
astore 8
7: aload 6
invokeinterface java.sql.PreparedStatement.executeQuery:()Ljava/sql/ResultSet;
astore 9
start local 9 8: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
9: goto 13
10: StackMap locals: org.apache.catalina.realm.DataSourceRealm java.sql.Connection java.lang.String java.util.ArrayList java.lang.Throwable java.lang.Throwable java.sql.PreparedStatement java.lang.Throwable java.lang.Throwable java.sql.ResultSet
StackMap stack:
aload 9
iconst_1
invokeinterface java.sql.ResultSet.getString:(I)Ljava/lang/String;
astore 10
start local 10 11: aload 10
ifnull 13
12: aload 3
aload 10
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 10 13: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.sql.ResultSet.next:()Z
ifne 10
14: aload 3
15: aload 9
ifnull 16
aload 9
invokeinterface java.sql.ResultSet.close:()V
16: StackMap locals:
StackMap stack: java.util.ArrayList
aload 6
ifnull 17
aload 6
invokeinterface java.sql.PreparedStatement.close:()V
17: StackMap locals:
StackMap stack: java.util.ArrayList
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 7
19: aload 9
ifnull 20
aload 9
invokeinterface java.sql.ResultSet.close:()V
end local 9 StackMap locals:
StackMap stack:
20: aload 7
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 8
aload 7
ifnonnull 22
aload 8
astore 7
goto 23
StackMap locals:
StackMap stack:
22: aload 7
aload 8
if_acmpeq 23
aload 7
aload 8
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
23: aload 7
athrow
StackMap locals: org.apache.catalina.realm.DataSourceRealm java.sql.Connection java.lang.String java.util.ArrayList java.lang.Throwable java.lang.Throwable java.sql.PreparedStatement
StackMap stack: java.lang.Throwable
24: astore 4
25: aload 6
ifnull 26
aload 6
invokeinterface java.sql.PreparedStatement.close:()V
end local 6 StackMap locals:
StackMap stack:
26: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
27: astore 5
aload 4
ifnonnull 28
aload 5
astore 4
goto 29
StackMap locals:
StackMap stack:
28: aload 4
aload 5
if_acmpeq 29
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
29: aload 4
athrow
StackMap locals: org.apache.catalina.realm.DataSourceRealm java.sql.Connection java.lang.String java.util.ArrayList
StackMap stack: java.sql.SQLException
30: astore 4
start local 4 31: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.containerLog:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.DataSourceRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "dataSourceRealm.getRoles.exception"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 4 32: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lorg/apache/catalina/realm/DataSourceRealm;
0 33 1 dbConnection Ljava/sql/Connection;
0 33 2 username Ljava/lang/String;
3 33 3 list Ljava/util/ArrayList<Ljava/lang/String;>;
5 26 6 stmt Ljava/sql/PreparedStatement;
8 20 9 rs Ljava/sql/ResultSet;
11 13 10 role Ljava/lang/String;
31 32 4 e Ljava/sql/SQLException;
Exception table:
from to target type
8 15 18 any
7 16 21 any
18 21 21 any
5 16 24 any
18 24 24 any
4 17 27 any
18 27 27 any
3 17 30 Class java.sql.SQLException
18 30 30 Class java.sql.SQLException
Signature: (Ljava/sql/Connection;Ljava/lang/String;)Ljava/util/ArrayList<Ljava/lang/String;>;
MethodParameters:
Name Flags
dbConnection
username
private boolean isRoleStoreDefined();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.realm.DataSourceRealm.userRoleTable:Ljava/lang/String;
ifnonnull 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.roleNameCol:Ljava/lang/String;
ifnonnull 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DataSourceRealm;
protected void startInternal();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "SELECT "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: aload 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.roleNameCol:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
ldc " FROM "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.userRoleTable:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 1
ldc " WHERE "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.userNameCol:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: aload 1
ldc " = ?"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: aload 0
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.apache.catalina.realm.DataSourceRealm.preparedRoles:Ljava/lang/String;
8: new java.lang.StringBuilder
dup
ldc "SELECT "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 1
9: aload 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.userCredCol:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: aload 1
ldc " FROM "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: aload 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.userTable:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: aload 1
ldc " WHERE "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: aload 1
aload 0
getfield org.apache.catalina.realm.DataSourceRealm.userNameCol:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
14: aload 1
ldc " = ?"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: aload 0
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.apache.catalina.realm.DataSourceRealm.preparedCredentials:Ljava/lang/String;
16: aload 0
invokespecial org.apache.catalina.realm.RealmBase.startInternal:()V
17: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/catalina/realm/DataSourceRealm;
1 18 1 temp Ljava/lang/StringBuilder;
Exceptions:
throws org.apache.catalina.LifecycleException
}
SourceFile: "DataSourceRealm.java"
InnerClasses:
protected AllRolesMode = org.apache.catalina.realm.RealmBase$AllRolesMode of org.apache.catalina.realm.RealmBase