public class org.apache.catalina.realm.MessageDigestCredentialHandler extends org.apache.catalina.realm.DigestCredentialHandlerBase
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: org.apache.catalina.realm.MessageDigestCredentialHandler
  super_class: org.apache.catalina.realm.DigestCredentialHandlerBase
{
  private static final org.apache.juli.logging.Log log;
    descriptor: Lorg/apache/juli/logging/Log;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  public static final int DEFAULT_ITERATIONS;
    descriptor: I
    flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
    ConstantValue: 1

  private java.nio.charset.Charset encoding;
    descriptor: Ljava/nio/charset/Charset;
    flags: (0x0002) ACC_PRIVATE

  private java.lang.String algorithm;
    descriptor: Ljava/lang/String;
    flags: (0x0002) ACC_PRIVATE

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 56
            ldc Lorg/apache/catalina/realm/MessageDigestCredentialHandler;
            invokestatic org.apache.juli.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/juli/logging/Log;
            putstatic org.apache.catalina.realm.MessageDigestCredentialHandler.log:Lorg/apache/juli/logging/Log;
         1: .line 58
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public void <init>();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
         0: .line 54
            aload 0 /* this */
            invokespecial org.apache.catalina.realm.DigestCredentialHandlerBase.<init>:()V
         1: .line 60
            aload 0 /* this */
            getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
            putfield org.apache.catalina.realm.MessageDigestCredentialHandler.encoding:Ljava/nio/charset/Charset;
         2: .line 61
            aload 0 /* this */
            aconst_null
            putfield org.apache.catalina.realm.MessageDigestCredentialHandler.algorithm:Ljava/lang/String;
         3: .line 54
            return
        end local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/apache/catalina/realm/MessageDigestCredentialHandler;

  public java.lang.String getEncoding();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
         0: .line 65
            aload 0 /* this */
            getfield org.apache.catalina.realm.MessageDigestCredentialHandler.encoding:Ljava/nio/charset/Charset;
            invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
            areturn
        end local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/realm/MessageDigestCredentialHandler;

  public void setEncoding(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=2, args_size=2
        start local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
        start local 1 // java.lang.String encodingName
         0: .line 70
            aload 1 /* encodingName */
            ifnonnull 3
         1: .line 71
            aload 0 /* this */
            getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
            putfield org.apache.catalina.realm.MessageDigestCredentialHandler.encoding:Ljava/nio/charset/Charset;
         2: .line 72
            goto 7
         3: .line 74
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* encodingName */
            invokestatic org.apache.tomcat.util.buf.B2CConverter.getCharset:(Ljava/lang/String;)Ljava/nio/charset/Charset;
            putfield org.apache.catalina.realm.MessageDigestCredentialHandler.encoding:Ljava/nio/charset/Charset;
         4: .line 75
            goto 7
      StackMap locals:
      StackMap stack: java.io.UnsupportedEncodingException
         5: pop
         6: .line 76
            getstatic org.apache.catalina.realm.MessageDigestCredentialHandler.log:Lorg/apache/juli/logging/Log;
            getstatic org.apache.catalina.realm.MessageDigestCredentialHandler.sm:Lorg/apache/tomcat/util/res/StringManager;
            ldc "mdCredentialHandler.unknownEncoding"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* encodingName */
            aastore
            dup
            iconst_1
            aload 0 /* this */
            getfield org.apache.catalina.realm.MessageDigestCredentialHandler.encoding:Ljava/nio/charset/Charset;
            invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
            aastore
            invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;)V
         7: .line 79
      StackMap locals:
      StackMap stack:
            return
        end local 1 // java.lang.String encodingName
        end local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    8     0          this  Lorg/apache/catalina/realm/MessageDigestCredentialHandler;
            0    8     1  encodingName  Ljava/lang/String;
      Exception table:
        from    to  target  type
           3     4       5  Class java.io.UnsupportedEncodingException
    MethodParameters:
              Name  Flags
      encodingName  

  public java.lang.String getAlgorithm();
    descriptor: ()Ljava/lang/String;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
         0: .line 84
            aload 0 /* this */
            getfield org.apache.catalina.realm.MessageDigestCredentialHandler.algorithm:Ljava/lang/String;
            areturn
        end local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/realm/MessageDigestCredentialHandler;

  public void setAlgorithm(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
        start local 1 // java.lang.String algorithm
         0: .line 90
            aload 1 /* algorithm */
            invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.init:(Ljava/lang/String;)V
         1: .line 91
            aload 0 /* this */
            aload 1 /* algorithm */
            putfield org.apache.catalina.realm.MessageDigestCredentialHandler.algorithm:Ljava/lang/String;
         2: .line 92
            return
        end local 1 // java.lang.String algorithm
        end local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    3     0       this  Lorg/apache/catalina/realm/MessageDigestCredentialHandler;
            0    3     1  algorithm  Ljava/lang/String;
    Exceptions:
      throws java.security.NoSuchAlgorithmException
    MethodParameters:
           Name  Flags
      algorithm  

  public boolean matches(java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=9, args_size=3
        start local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
        start local 1 // java.lang.String inputCredentials
        start local 2 // java.lang.String storedCredentials
         0: .line 97
            aload 1 /* inputCredentials */
            ifnull 1
            aload 2 /* storedCredentials */
            ifnonnull 2
         1: .line 98
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
         2: .line 101
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual org.apache.catalina.realm.MessageDigestCredentialHandler.getAlgorithm:()Ljava/lang/String;
            ifnonnull 4
         3: .line 103
            aload 2 /* storedCredentials */
            aload 1 /* inputCredentials */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ireturn
         4: .line 108
      StackMap locals:
      StackMap stack:
            aload 2 /* storedCredentials */
            ldc "{MD5}"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifne 5
            aload 2 /* storedCredentials */
            ldc "{SHA}"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 10
         5: .line 111
      StackMap locals:
      StackMap stack:
            aload 2 /* storedCredentials */
            iconst_5
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 3 /* base64ServerDigest */
        start local 3 // java.lang.String base64ServerDigest
         6: .line 113
            aload 0 /* this */
            invokevirtual org.apache.catalina.realm.MessageDigestCredentialHandler.getAlgorithm:()Ljava/lang/String;
            iconst_1
            anewarray byte[]
            dup
            iconst_0
            aload 1 /* inputCredentials */
            getstatic java.nio.charset.StandardCharsets.ISO_8859_1:Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            aastore
         7: .line 112
            invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.digest:(Ljava/lang/String;[[B)[B
            astore 4 /* userDigest */
        start local 4 // byte[] userDigest
         8: .line 114
            aload 4 /* userDigest */
            invokestatic org.apache.tomcat.util.codec.binary.Base64.encodeBase64String:([B)Ljava/lang/String;
            astore 5 /* base64UserDigest */
        start local 5 // java.lang.String base64UserDigest
         9: .line 115
            aload 5 /* base64UserDigest */
            aload 3 /* base64ServerDigest */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ireturn
        end local 5 // java.lang.String base64UserDigest
        end local 4 // byte[] userDigest
        end local 3 // java.lang.String base64ServerDigest
        10: .line 116
      StackMap locals:
      StackMap stack:
            aload 2 /* storedCredentials */
            ldc "{SSHA}"
            invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
            ifeq 23
        11: .line 120
            aload 2 /* storedCredentials */
            bipush 6
            invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
            astore 3 /* serverDigestPlusSalt */
        start local 3 // java.lang.String serverDigestPlusSalt
        12: .line 121
            aload 3 /* serverDigestPlusSalt */
            invokestatic org.apache.tomcat.util.codec.binary.Base64.decodeBase64:(Ljava/lang/String;)[B
            astore 4 /* serverDigestPlusSaltBytes */
        start local 4 // byte[] serverDigestPlusSaltBytes
        13: .line 125
            bipush 20
            newarray 8
            astore 5 /* serverDigestBytes */
        start local 5 // byte[] serverDigestBytes
        14: .line 126
            aload 4 /* serverDigestPlusSaltBytes */
            iconst_0
            aload 5 /* serverDigestBytes */
            iconst_0
            bipush 20
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        15: .line 129
            aload 4 /* serverDigestPlusSaltBytes */
            arraylength
            bipush 20
            isub
            istore 6 /* saltLength */
        start local 6 // int saltLength
        16: .line 130
            iload 6 /* saltLength */
            newarray 8
            astore 7 /* serverSaltBytes */
        start local 7 // byte[] serverSaltBytes
        17: .line 131
            aload 4 /* serverDigestPlusSaltBytes */
            bipush 20
            aload 7 /* serverSaltBytes */
            iconst_0
            iload 6 /* saltLength */
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        18: .line 135
            aload 0 /* this */
            invokevirtual org.apache.catalina.realm.MessageDigestCredentialHandler.getAlgorithm:()Ljava/lang/String;
            iconst_2
            anewarray byte[]
            dup
            iconst_0
        19: .line 136
            aload 1 /* inputCredentials */
            getstatic java.nio.charset.StandardCharsets.ISO_8859_1:Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            aastore
            dup
            iconst_1
        20: .line 137
            aload 7 /* serverSaltBytes */
            aastore
        21: .line 135
            invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.digest:(Ljava/lang/String;[[B)[B
            astore 8 /* userDigestBytes */
        start local 8 // byte[] userDigestBytes
        22: .line 139
            aload 8 /* userDigestBytes */
            aload 5 /* serverDigestBytes */
            invokestatic java.util.Arrays.equals:([B[B)Z
            ireturn
        end local 8 // byte[] userDigestBytes
        end local 7 // byte[] serverSaltBytes
        end local 6 // int saltLength
        end local 5 // byte[] serverDigestBytes
        end local 4 // byte[] serverDigestPlusSaltBytes
        end local 3 // java.lang.String serverDigestPlusSalt
        23: .line 140
      StackMap locals:
      StackMap stack:
            aload 2 /* storedCredentials */
            bipush 36
            invokevirtual java.lang.String.indexOf:(I)I
            iconst_m1
            if_icmple 25
        24: .line 141
            aload 0 /* this */
            aload 1 /* inputCredentials */
            aload 2 /* storedCredentials */
            invokevirtual org.apache.catalina.realm.MessageDigestCredentialHandler.matchesSaltIterationsEncoded:(Ljava/lang/String;Ljava/lang/String;)Z
            ireturn
        25: .line 144
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* inputCredentials */
            aconst_null
            iconst_1
            invokevirtual org.apache.catalina.realm.MessageDigestCredentialHandler.mutate:(Ljava/lang/String;[BI)Ljava/lang/String;
            astore 3 /* userDigest */
        start local 3 // java.lang.String userDigest
        26: .line 145
            aload 3 /* userDigest */
            ifnonnull 28
        27: .line 148
            iconst_0
            ireturn
        28: .line 150
      StackMap locals: java.lang.String
      StackMap stack:
            aload 2 /* storedCredentials */
            aload 3 /* userDigest */
            invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
            ireturn
        end local 3 // java.lang.String userDigest
        end local 2 // java.lang.String storedCredentials
        end local 1 // java.lang.String inputCredentials
        end local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
      LocalVariableTable:
        Start  End  Slot                       Name  Signature
            0   29     0                       this  Lorg/apache/catalina/realm/MessageDigestCredentialHandler;
            0   29     1           inputCredentials  Ljava/lang/String;
            0   29     2          storedCredentials  Ljava/lang/String;
            6   10     3         base64ServerDigest  Ljava/lang/String;
            8   10     4                 userDigest  [B
            9   10     5           base64UserDigest  Ljava/lang/String;
           12   23     3       serverDigestPlusSalt  Ljava/lang/String;
           13   23     4  serverDigestPlusSaltBytes  [B
           14   23     5          serverDigestBytes  [B
           16   23     6                 saltLength  I
           17   23     7            serverSaltBytes  [B
           22   23     8            userDigestBytes  [B
           26   29     3                 userDigest  Ljava/lang/String;
    MethodParameters:
                   Name  Flags
      inputCredentials   
      storedCredentials  

  protected java.lang.String mutate(java.lang.String, byte[], int);
    descriptor: (Ljava/lang/String;[BI)Ljava/lang/String;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=6, locals=6, args_size=4
        start local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
        start local 1 // java.lang.String inputCredentials
        start local 2 // byte[] salt
        start local 3 // int iterations
         0: .line 158
            aload 0 /* this */
            getfield org.apache.catalina.realm.MessageDigestCredentialHandler.algorithm:Ljava/lang/String;
            ifnonnull 2
         1: .line 159
            aload 1 /* inputCredentials */
            areturn
         2: .line 161
      StackMap locals:
      StackMap stack:
            aload 1 /* inputCredentials */
            aload 0 /* this */
            getfield org.apache.catalina.realm.MessageDigestCredentialHandler.encoding:Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            astore 4 /* inputCredentialbytes */
        start local 4 // byte[] inputCredentialbytes
         3: .line 163
            aload 2 /* salt */
            ifnonnull 6
         4: .line 164
            aload 0 /* this */
            getfield org.apache.catalina.realm.MessageDigestCredentialHandler.algorithm:Ljava/lang/String;
            iload 3 /* iterations */
            iconst_1
            anewarray byte[]
            dup
            iconst_0
            aload 4 /* inputCredentialbytes */
            aastore
            invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.digest:(Ljava/lang/String;I[[B)[B
            astore 5 /* userDigest */
        start local 5 // byte[] userDigest
         5: .line 165
            goto 7
        end local 5 // byte[] userDigest
         6: .line 166
      StackMap locals: byte[]
      StackMap stack:
            aload 0 /* this */
            getfield org.apache.catalina.realm.MessageDigestCredentialHandler.algorithm:Ljava/lang/String;
            iload 3 /* iterations */
            iconst_2
            anewarray byte[]
            dup
            iconst_0
            aload 2 /* salt */
            aastore
            dup
            iconst_1
            aload 4 /* inputCredentialbytes */
            aastore
            invokestatic org.apache.tomcat.util.security.ConcurrentMessageDigest.digest:(Ljava/lang/String;I[[B)[B
            astore 5 /* userDigest */
        start local 5 // byte[] userDigest
         7: .line 168
      StackMap locals: byte[]
      StackMap stack:
            aload 5 /* userDigest */
            invokestatic org.apache.tomcat.util.buf.HexUtils.toHexString:([B)Ljava/lang/String;
            areturn
        end local 5 // byte[] userDigest
        end local 4 // byte[] inputCredentialbytes
        end local 3 // int iterations
        end local 2 // byte[] salt
        end local 1 // java.lang.String inputCredentials
        end local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
      LocalVariableTable:
        Start  End  Slot                  Name  Signature
            0    8     0                  this  Lorg/apache/catalina/realm/MessageDigestCredentialHandler;
            0    8     1      inputCredentials  Ljava/lang/String;
            0    8     2                  salt  [B
            0    8     3            iterations  I
            3    8     4  inputCredentialbytes  [B
            5    6     5            userDigest  [B
            7    8     5            userDigest  [B
    MethodParameters:
                  Name  Flags
      inputCredentials  
      salt              
      iterations        

  protected int getDefaultIterations();
    descriptor: ()I
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
         0: .line 175
            iconst_1
            ireturn
        end local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/realm/MessageDigestCredentialHandler;

  protected org.apache.juli.logging.Log getLog();
    descriptor: ()Lorg/apache/juli/logging/Log;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
         0: .line 181
            getstatic org.apache.catalina.realm.MessageDigestCredentialHandler.log:Lorg/apache/juli/logging/Log;
            areturn
        end local 0 // org.apache.catalina.realm.MessageDigestCredentialHandler this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lorg/apache/catalina/realm/MessageDigestCredentialHandler;
}
SourceFile: "MessageDigestCredentialHandler.java"