public abstract class org.apache.catalina.realm.DigestCredentialHandlerBase implements org.apache.catalina.CredentialHandler
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.catalina.realm.DigestCredentialHandlerBase
super_class: java.lang.Object
{
protected static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
public static final int DEFAULT_SALT_LENGTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 32
private int iterations;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int saltLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final java.lang.Object randomLock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.util.Random random;
descriptor: Ljava/util/Random;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private boolean logInvalidStoredCredentials;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
1: putstatic org.apache.catalina.realm.DigestCredentialHandlerBase.sm:Lorg/apache/tomcat/util/res/StringManager;
2: 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 java.lang.Object.<init>:()V
1: aload 0
aload 0
invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.getDefaultIterations:()I
putfield org.apache.catalina.realm.DigestCredentialHandlerBase.iterations:I
2: aload 0
aload 0
invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.getDefaultSaltLength:()I
putfield org.apache.catalina.realm.DigestCredentialHandlerBase.saltLength:I
3: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.apache.catalina.realm.DigestCredentialHandlerBase.randomLock:Ljava/lang/Object;
4: aload 0
aconst_null
putfield org.apache.catalina.realm.DigestCredentialHandlerBase.random:Ljava/util/Random;
5: aload 0
iconst_0
putfield org.apache.catalina.realm.DigestCredentialHandlerBase.logInvalidStoredCredentials:Z
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
public int getIterations();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.realm.DigestCredentialHandlerBase.iterations:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
public void setIterations(int);
descriptor: (I)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.DigestCredentialHandlerBase.iterations:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
0 2 1 iterations I
MethodParameters:
Name Flags
iterations
public int getSaltLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.realm.DigestCredentialHandlerBase.saltLength:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
public void setSaltLength(int);
descriptor: (I)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.DigestCredentialHandlerBase.saltLength:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
0 2 1 saltLength I
MethodParameters:
Name Flags
saltLength
public boolean getLogInvalidStoredCredentials();
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.DigestCredentialHandlerBase.logInvalidStoredCredentials:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
public void setLogInvalidStoredCredentials(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.DigestCredentialHandlerBase.logInvalidStoredCredentials:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
0 2 1 logInvalidStoredCredentials Z
MethodParameters:
Name Flags
logInvalidStoredCredentials
public java.lang.String mutate(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, 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.DigestCredentialHandlerBase.getIterations:()I
istore 3
start local 3 2: aload 0
invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.getSaltLength:()I
istore 4
start local 4 3: iload 4
ifne 6
4: iconst_0
newarray 8
astore 2
5: goto 17
StackMap locals: byte[] int int
StackMap stack:
6: iload 4
ifle 17
7: aload 0
getfield org.apache.catalina.realm.DigestCredentialHandlerBase.random:Ljava/util/Random;
ifnonnull 15
8: aload 0
getfield org.apache.catalina.realm.DigestCredentialHandlerBase.randomLock:Ljava/lang/Object;
dup
astore 5
monitorenter
9: aload 0
getfield org.apache.catalina.realm.DigestCredentialHandlerBase.random:Ljava/util/Random;
ifnonnull 11
10: aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.apache.catalina.realm.DigestCredentialHandlerBase.random:Ljava/util/Random;
11: StackMap locals: java.lang.Object
StackMap stack:
aload 5
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 5
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
iload 4
newarray 8
astore 2
16: aload 0
getfield org.apache.catalina.realm.DigestCredentialHandlerBase.random:Ljava/util/Random;
aload 2
invokevirtual java.util.Random.nextBytes:([B)V
17: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
iload 3
invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.mutate:(Ljava/lang/String;[BI)Ljava/lang/String;
astore 5
start local 5 18: aload 5
ifnonnull 20
19: aconst_null
areturn
20: StackMap locals: java.lang.String
StackMap stack:
iload 4
ifne 22
iload 3
iconst_1
if_icmpne 22
21: aload 5
areturn
22: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
iload 4
iconst_1
ishl
bipush 10
iadd
aload 5
invokevirtual java.lang.String.length:()I
iadd
iconst_2
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
23: astore 6
start local 6 24: aload 6
aload 2
invokestatic org.apache.tomcat.util.buf.HexUtils.toHexString:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
25: aload 6
bipush 36
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
26: aload 6
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
27: aload 6
bipush 36
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
28: aload 6
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
29: aload 6
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
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 30 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
0 30 1 userCredential Ljava/lang/String;
1 30 2 salt [B
2 30 3 iterations I
3 30 4 saltLength I
18 30 5 serverCredential Ljava/lang/String;
24 30 6 result Ljava/lang/StringBuilder;
Exception table:
from to target type
9 12 13 any
13 14 13 any
MethodParameters:
Name Flags
userCredential
protected boolean matchesSaltIterationsEncoded(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnonnull 3
1: aload 0
aconst_null
invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.logInvalidStoredCredentials:(Ljava/lang/String;)V
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 2
bipush 36
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 4: aload 2
bipush 36
iload 3
iconst_1
iadd
invokevirtual java.lang.String.indexOf:(II)I
istore 4
start local 4 5: iload 3
iflt 6
iload 4
ifge 8
6: StackMap locals: int int
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.logInvalidStoredCredentials:(Ljava/lang/String;)V
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 2
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 9: aload 2
iload 3
iconst_1
iadd
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 6
start local 6 10: aload 2
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 7
start local 7 11: aload 5
invokestatic org.apache.tomcat.util.buf.HexUtils.fromHexString:(Ljava/lang/String;)[B
astore 8
start local 8 12: goto 16
end local 8 StackMap locals: org.apache.catalina.realm.DigestCredentialHandlerBase java.lang.String java.lang.String int int java.lang.String int java.lang.String
StackMap stack: java.lang.IllegalArgumentException
13: pop
14: aload 0
aload 2
invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.logInvalidStoredCredentials:(Ljava/lang/String;)V
15: iconst_0
ireturn
start local 8 16: StackMap locals: byte[]
StackMap stack:
aload 0
aload 1
aload 8
iload 6
17: aload 7
invokestatic org.apache.tomcat.util.buf.HexUtils.fromHexString:(Ljava/lang/String;)[B
arraylength
bipush 8
imul
18: invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.mutate:(Ljava/lang/String;[BII)Ljava/lang/String;
astore 9
start local 9 19: aload 9
ifnonnull 21
20: iconst_0
ireturn
21: StackMap locals: java.lang.String
StackMap stack:
aload 7
aload 9
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
end local 9 end local 8 end local 7 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 22 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
0 22 1 inputCredentials Ljava/lang/String;
0 22 2 storedCredentials Ljava/lang/String;
4 22 3 sep1 I
5 22 4 sep2 I
9 22 5 hexSalt Ljava/lang/String;
10 22 6 iterations I
11 22 7 storedHexEncoded Ljava/lang/String;
12 13 8 salt [B
16 22 8 salt [B
19 22 9 inputHexEncoded Ljava/lang/String;
Exception table:
from to target type
11 12 13 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
inputCredentials
storedCredentials
private void logInvalidStoredCredentials(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.catalina.realm.DigestCredentialHandlerBase.logInvalidStoredCredentials:Z
ifeq 4
1: aload 0
invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.getLog:()Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.realm.DigestCredentialHandlerBase.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "credentialHandler.invalidStoredCredential"
iconst_1
anewarray java.lang.Object
dup
iconst_0
2: aload 1
aastore
3: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
0 5 1 storedCredentials Ljava/lang/String;
MethodParameters:
Name Flags
storedCredentials
protected int getDefaultSaltLength();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: bipush 32
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
protected abstract java.lang.String mutate(java.lang.String, byte[], int);
descriptor: (Ljava/lang/String;[BI)Ljava/lang/String;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
inputCredentials
salt
iterations
protected java.lang.String mutate(java.lang.String, byte[], int, int);
descriptor: (Ljava/lang/String;[BII)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
iload 3
invokevirtual org.apache.catalina.realm.DigestCredentialHandlerBase.mutate:(Ljava/lang/String;[BI)Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/realm/DigestCredentialHandlerBase;
0 1 1 inputCredentials Ljava/lang/String;
0 1 2 salt [B
0 1 3 iterations I
0 1 4 keyLength I
MethodParameters:
Name Flags
inputCredentials
salt
iterations
keyLength
public abstract void setAlgorithm(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
algorithm
public abstract java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
protected abstract int getDefaultIterations();
descriptor: ()I
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract org.apache.juli.logging.Log getLog();
descriptor: ()Lorg/apache/juli/logging/Log;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
}
SourceFile: "DigestCredentialHandlerBase.java"