public class org.apache.tomcat.util.security.ConcurrentMessageDigest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.security.ConcurrentMessageDigest
super_class: java.lang.Object
{
private static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String MD5;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "MD5"
private static final java.lang.String SHA1;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "SHA-1"
private static final java.util.Map<java.lang.String, java.util.Queue<java.security.MessageDigest>> queues;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/util/Queue<Ljava/security/MessageDigest;>;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: ldc Lorg/apache/tomcat/util/security/ConcurrentMessageDigest;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.tomcat.util.security.ConcurrentMessageDigest.sm:Lorg/apache/tomcat/util/res/StringManager;
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
2: putstatic org.apache.tomcat.util.security.ConcurrentMessageDigest.queues:Ljava/util/Map;
3: ldc "MD5"
invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.init:(Ljava/lang/String;)V
4: ldc "SHA-1"
invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.init:(Ljava/lang/String;)V
5: goto 8
StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
6: astore 0
start local 0 7: new java.lang.IllegalArgumentException
dup
getstatic org.apache.tomcat.util.security.ConcurrentMessageDigest.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "concurrentMessageDigest.noDigest"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 0
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 0 8: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
7 8 0 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
3 5 6 Class java.security.NoSuchAlgorithmException
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/security/ConcurrentMessageDigest;
public static byte[] digestMD5(byte[][]);
descriptor: ([[B)[B
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "MD5"
aload 0
invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.digest:(Ljava/lang/String;[[B)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 input [[B
MethodParameters:
Name Flags
input
public static byte[] digestSHA1(byte[][]);
descriptor: ([[B)[B
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "SHA-1"
aload 0
invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.digest:(Ljava/lang/String;[[B)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 input [[B
MethodParameters:
Name Flags
input
public static byte[] digest(java.lang.String, byte[][]);
descriptor: (Ljava/lang/String;[[B)[B
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
aload 1
invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.digest:(Ljava/lang/String;I[[B)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 algorithm Ljava/lang/String;
0 1 1 input [[B
MethodParameters:
Name Flags
algorithm
input
public static byte[] digest(java.lang.String, int, byte[][]);
descriptor: (Ljava/lang/String;I[[B)[B
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.tomcat.util.security.ConcurrentMessageDigest.queues:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Queue
astore 3
start local 3 1: aload 3
ifnonnull 3
2: new java.lang.IllegalStateException
dup
getstatic org.apache.tomcat.util.security.ConcurrentMessageDigest.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "concurrentMessageDigest.noDigest"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.util.Queue
StackMap stack:
aload 3
invokeinterface java.util.Queue.poll:()Ljava/lang/Object;
checkcast java.security.MessageDigest
astore 4
start local 4 4: aload 4
ifnonnull 9
5: aload 0
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 4
6: goto 9
StackMap locals: java.lang.String int byte[][] java.util.Queue java.security.MessageDigest
StackMap stack: java.security.NoSuchAlgorithmException
7: astore 5
start local 5 8: new java.lang.IllegalStateException
dup
getstatic org.apache.tomcat.util.security.ConcurrentMessageDigest.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "concurrentMessageDigest.noDigest"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
aload 5
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 9: StackMap locals:
StackMap stack:
aload 2
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 13
StackMap locals: java.lang.String int byte[][] java.util.Queue java.security.MessageDigest top int int byte[][]
StackMap stack:
10: aload 8
iload 6
aaload
astore 5
start local 5 11: aload 4
aload 5
invokevirtual java.security.MessageDigest.update:([B)V
end local 5 12: iinc 6 1
StackMap locals:
StackMap stack:
13: iload 6
iload 7
if_icmplt 10
14: aload 4
invokevirtual java.security.MessageDigest.digest:()[B
astore 5
start local 5 15: iload 1
iconst_1
if_icmple 22
16: iconst_1
istore 6
start local 6 17: goto 21
18: StackMap locals: java.lang.String int byte[][] java.util.Queue java.security.MessageDigest byte[] int
StackMap stack:
aload 4
aload 5
invokevirtual java.security.MessageDigest.update:([B)V
19: aload 4
invokevirtual java.security.MessageDigest.digest:()[B
astore 5
20: iinc 6 1
StackMap locals:
StackMap stack:
21: iload 6
iload 1
if_icmplt 18
end local 6 22: StackMap locals:
StackMap stack:
aload 3
aload 4
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
23: aload 5
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 24 0 algorithm Ljava/lang/String;
0 24 1 iterations I
0 24 2 input [[B
1 24 3 queue Ljava/util/Queue<Ljava/security/MessageDigest;>;
4 24 4 md Ljava/security/MessageDigest;
8 9 5 e Ljava/security/NoSuchAlgorithmException;
11 12 5 bytes [B
15 24 5 result [B
17 22 6 i I
Exception table:
from to target type
5 6 7 Class java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
iterations
input
public static void init(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: getstatic org.apache.tomcat.util.security.ConcurrentMessageDigest.queues:Ljava/util/Map;
dup
astore 1
monitorenter
1: getstatic org.apache.tomcat.util.security.ConcurrentMessageDigest.queues:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 6
2: aload 0
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 2
start local 2 3: new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
astore 3
start local 3 4: aload 3
aload 2
invokeinterface java.util.Queue.add:(Ljava/lang/Object;)Z
pop
5: getstatic org.apache.tomcat.util.security.ConcurrentMessageDigest.queues:Ljava/util/Map;
aload 0
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 end local 2 6: StackMap locals: java.util.Map
StackMap stack:
aload 1
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 1
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 algorithm Ljava/lang/String;
3 6 2 md Ljava/security/MessageDigest;
4 6 3 queue Ljava/util/Queue<Ljava/security/MessageDigest;>;
Exception table:
from to target type
1 7 8 any
8 9 8 any
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
}
SourceFile: "ConcurrentMessageDigest.java"