public class org.apache.catalina.realm.MemoryRealm 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.MemoryRealm
super_class: org.apache.catalina.realm.RealmBase
{
private static final org.apache.juli.logging.Log log;
descriptor: Lorg/apache/juli/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static org.apache.tomcat.util.digester.Digester digester;
descriptor: Lorg/apache/tomcat/util/digester/Digester;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.lang.String pathname;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private final java.util.Map<java.lang.String, org.apache.catalina.realm.GenericPrincipal> principals;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Lorg/apache/catalina/realm/GenericPrincipal;>;
private final java.util.Map<java.lang.String, java.lang.String> credentials;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/catalina/realm/MemoryRealm;
invokestatic org.apache.juli.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/juli/logging/Log;
putstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
1: aconst_null
putstatic org.apache.catalina.realm.MemoryRealm.digester:Lorg/apache/tomcat/util/digester/Digester;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.apache.catalina.realm.RealmBase.<init>:()V
1: aload 0
ldc "conf/tomcat-users.xml"
putfield org.apache.catalina.realm.MemoryRealm.pathname:Ljava/lang/String;
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.catalina.realm.MemoryRealm.principals:Ljava/util/Map;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.catalina.realm.MemoryRealm.credentials:Ljava/util/Map;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/catalina/realm/MemoryRealm;
public java.lang.String getPathname();
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.MemoryRealm.pathname:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/MemoryRealm;
public void setPathname(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.MemoryRealm.pathname: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/MemoryRealm;
0 2 1 pathname Ljava/lang/String;
MethodParameters:
Name Flags
pathname
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=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 1
aload 2
ifnonnull 4
1: StackMap locals:
StackMap stack:
getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 3
2: getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.MemoryRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "memoryRealm.authenticateFailure"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
3: StackMap locals:
StackMap stack:
aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.realm.MemoryRealm.principals:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.catalina.realm.GenericPrincipal
astore 3
start local 3 5: aconst_null
astore 4
start local 4 6: aload 3
ifnull 8
7: aload 0
getfield org.apache.catalina.realm.MemoryRealm.credentials:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
8: StackMap locals: org.apache.catalina.realm.GenericPrincipal java.lang.String
StackMap stack:
aload 3
ifnull 9
aload 4
ifnonnull 13
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.catalina.realm.MemoryRealm.getCredentialHandler:()Lorg/apache/catalina/CredentialHandler;
aload 2
invokeinterface org.apache.catalina.CredentialHandler.mutate:(Ljava/lang/String;)Ljava/lang/String;
pop
10: getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 12
11: getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.MemoryRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "memoryRealm.authenticateFailure"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
12: StackMap locals:
StackMap stack:
aconst_null
areturn
13: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.catalina.realm.MemoryRealm.getCredentialHandler:()Lorg/apache/catalina/CredentialHandler;
aload 2
aload 4
invokeinterface org.apache.catalina.CredentialHandler.matches:(Ljava/lang/String;Ljava/lang/String;)Z
istore 5
start local 5 14: iload 5
ifeq 18
15: getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 17
16: getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.MemoryRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "memoryRealm.authenticateSuccess"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
17: StackMap locals: int
StackMap stack:
aload 3
areturn
18: StackMap locals:
StackMap stack:
getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 20
19: getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.MemoryRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "memoryRealm.authenticateFailure"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
20: StackMap locals:
StackMap stack:
aconst_null
areturn
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 21 0 this Lorg/apache/catalina/realm/MemoryRealm;
0 21 1 username Ljava/lang/String;
0 21 2 credentials Ljava/lang/String;
5 21 3 principal Lorg/apache/catalina/realm/GenericPrincipal;
6 21 4 password Ljava/lang/String;
14 21 5 validated Z
MethodParameters:
Name Flags
username
credentials
void addUser(java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 1: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
2: StackMap locals: java.util.List
StackMap stack:
aload 3
bipush 44
invokevirtual java.lang.String.indexOf:(I)I
istore 5
start local 5 3: iload 5
ifge 5
4: goto 9
5: StackMap locals: int
StackMap stack:
aload 3
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 6
start local 6 6: aload 4
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: aload 3
iload 5
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
end local 6 end local 5 8: goto 2
9: StackMap locals:
StackMap stack:
new org.apache.catalina.realm.GenericPrincipal
dup
aload 1
aload 4
invokespecial org.apache.catalina.realm.GenericPrincipal.<init>:(Ljava/lang/String;Ljava/util/List;)V
astore 5
start local 5 10: aload 0
getfield org.apache.catalina.realm.MemoryRealm.principals:Ljava/util/Map;
aload 1
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: aload 0
getfield org.apache.catalina.realm.MemoryRealm.credentials:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: return
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 13 0 this Lorg/apache/catalina/realm/MemoryRealm;
0 13 1 username Ljava/lang/String;
0 13 2 password Ljava/lang/String;
0 13 3 roles Ljava/lang/String;
1 13 4 list Ljava/util/List<Ljava/lang/String;>;
3 8 5 comma I
6 8 6 role Ljava/lang/String;
10 13 5 principal Lorg/apache/catalina/realm/GenericPrincipal;
MethodParameters:
Name Flags
username
password
roles
protected synchronized org.apache.tomcat.util.digester.Digester getDigester();
descriptor: ()Lorg/apache/tomcat/util/digester/Digester;
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic org.apache.catalina.realm.MemoryRealm.digester:Lorg/apache/tomcat/util/digester/Digester;
ifnonnull 11
1: new org.apache.tomcat.util.digester.Digester
dup
invokespecial org.apache.tomcat.util.digester.Digester.<init>:()V
putstatic org.apache.catalina.realm.MemoryRealm.digester:Lorg/apache/tomcat/util/digester/Digester;
2: getstatic org.apache.catalina.realm.MemoryRealm.digester:Lorg/apache/tomcat/util/digester/Digester;
iconst_0
invokevirtual org.apache.tomcat.util.digester.Digester.setValidating:(Z)V
3: getstatic org.apache.catalina.realm.MemoryRealm.digester:Lorg/apache/tomcat/util/digester/Digester;
4: ldc "http://apache.org/xml/features/allow-java-encodings"
5: iconst_1
6: invokevirtual org.apache.tomcat.util.digester.Digester.setFeature:(Ljava/lang/String;Z)V
7: goto 10
StackMap locals:
StackMap stack: java.lang.Exception
8: astore 1
start local 1 9: getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.MemoryRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "memoryRealm.xmlFeatureEncoding"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 1
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 1 10: StackMap locals:
StackMap stack:
getstatic org.apache.catalina.realm.MemoryRealm.digester:Lorg/apache/tomcat/util/digester/Digester;
new org.apache.catalina.realm.MemoryRuleSet
dup
invokespecial org.apache.catalina.realm.MemoryRuleSet.<init>:()V
invokevirtual org.apache.tomcat.util.digester.Digester.addRuleSet:(Lorg/apache/tomcat/util/digester/RuleSet;)V
11: StackMap locals:
StackMap stack:
getstatic org.apache.catalina.realm.MemoryRealm.digester:Lorg/apache/tomcat/util/digester/Digester;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/catalina/realm/MemoryRealm;
9 10 1 e Ljava/lang/Exception;
Exception table:
from to target type
3 7 8 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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.catalina.realm.MemoryRealm.credentials:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/MemoryRealm;
0 1 1 username Ljava/lang/String;
MethodParameters:
Name Flags
username
protected java.security.Principal getPrincipal(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/security/Principal;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.catalina.realm.MemoryRealm.principals:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.Principal
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/MemoryRealm;
0 1 1 username Ljava/lang/String;
MethodParameters:
Name Flags
username
protected void startInternal();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.catalina.realm.MemoryRealm.getPathname:()Ljava/lang/String;
astore 1
start local 1 1: aconst_null
astore 2
aconst_null
astore 3
2: invokestatic org.apache.tomcat.util.file.ConfigFileLoader.getSource:()Lorg/apache/tomcat/util/file/ConfigurationSource;
aload 1
invokeinterface org.apache.tomcat.util.file.ConfigurationSource.getResource:(Ljava/lang/String;)Lorg/apache/tomcat/util/file/ConfigurationSource$Resource;
invokevirtual org.apache.tomcat.util.file.ConfigurationSource$Resource.getInputStream:()Ljava/io/InputStream;
astore 4
start local 4 3: getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 5
4: getstatic org.apache.catalina.realm.MemoryRealm.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.MemoryRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "memoryRealm.loadPath"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
5: StackMap locals: org.apache.catalina.realm.MemoryRealm java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack:
aload 0
invokevirtual org.apache.catalina.realm.MemoryRealm.getDigester:()Lorg/apache/tomcat/util/digester/Digester;
astore 5
start local 5 6: aload 5
dup
astore 6
monitorenter
7: aload 5
aload 0
invokevirtual org.apache.tomcat.util.digester.Digester.push:(Ljava/lang/Object;)V
8: aload 5
aload 4
invokevirtual org.apache.tomcat.util.digester.Digester.parse:(Ljava/io/InputStream;)Ljava/lang/Object;
pop
9: aload 6
monitorexit
10: goto 18
StackMap locals: org.apache.catalina.realm.MemoryRealm java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream org.apache.tomcat.util.digester.Digester org.apache.tomcat.util.digester.Digester
StackMap stack: java.lang.Throwable
11: aload 6
monitorexit
12: athrow
13: StackMap locals: org.apache.catalina.realm.MemoryRealm java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream org.apache.tomcat.util.digester.Digester
StackMap stack: java.lang.Exception
astore 6
start local 6 14: new org.apache.catalina.LifecycleException
dup
getstatic org.apache.catalina.realm.MemoryRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "memoryRealm.readXml"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 6
invokespecial org.apache.catalina.LifecycleException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 15: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
16: aload 5
invokevirtual org.apache.tomcat.util.digester.Digester.reset:()V
17: aload 7
athrow
18: StackMap locals:
StackMap stack:
aload 5
invokevirtual org.apache.tomcat.util.digester.Digester.reset:()V
end local 5 19: aload 4
ifnull 27
aload 4
invokevirtual java.io.InputStream.close:()V
goto 27
StackMap locals: org.apache.catalina.realm.MemoryRealm java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
20: astore 2
aload 4
ifnull 21
aload 4
invokevirtual java.io.InputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
21: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
22: astore 3
aload 2
ifnonnull 23
aload 3
astore 2
goto 24
StackMap locals:
StackMap stack:
23: aload 2
aload 3
if_acmpeq 24
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
24: aload 2
athrow
StackMap locals: org.apache.catalina.realm.MemoryRealm java.lang.String
StackMap stack: java.io.IOException
25: astore 2
start local 2 26: new org.apache.catalina.LifecycleException
dup
getstatic org.apache.catalina.realm.MemoryRealm.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "memoryRealm.loadExist"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 2
invokespecial org.apache.catalina.LifecycleException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 27: StackMap locals:
StackMap stack:
aload 0
invokespecial org.apache.catalina.realm.RealmBase.startInternal:()V
28: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lorg/apache/catalina/realm/MemoryRealm;
1 29 1 pathName Ljava/lang/String;
3 21 4 is Ljava/io/InputStream;
6 19 5 digester Lorg/apache/tomcat/util/digester/Digester;
14 15 6 e Ljava/lang/Exception;
26 27 2 ioe Ljava/io/IOException;
Exception table:
from to target type
7 10 11 any
11 12 11 any
6 13 13 Class java.lang.Exception
6 15 15 any
3 19 20 any
2 22 22 any
1 25 25 Class java.io.IOException
Exceptions:
throws org.apache.catalina.LifecycleException
}
SourceFile: "MemoryRealm.java"
InnerClasses:
public Resource = org.apache.tomcat.util.file.ConfigurationSource$Resource of org.apache.tomcat.util.file.ConfigurationSource