public final class com.mongodb.internal.authentication.NativeAuthenticationHelper
  minor version: 0
  major version: 59
  flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
  this_class: com.mongodb.internal.authentication.NativeAuthenticationHelper
  super_class: java.lang.Object
{
  private static final java.nio.charset.Charset UTF_8_CHARSET;
    descriptor: Ljava/nio/charset/Charset;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 36
            ldc "UTF-8"
            invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
            putstatic com.mongodb.internal.authentication.NativeAuthenticationHelper.UTF_8_CHARSET:Ljava/nio/charset/Charset;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  public static java.lang.String createAuthenticationHash(java.lang.String, char[]);
    descriptor: (Ljava/lang/String;[C)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=4, locals=4, args_size=2
        start local 0 // java.lang.String userName
        start local 1 // char[] password
         0: .line 48
            new java.io.ByteArrayOutputStream
            dup
            aload 0 /* userName */
            invokevirtual java.lang.String.length:()I
            bipush 20
            iadd
            aload 1 /* password */
            arraylength
            iadd
            invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
            astore 2 /* bout */
        start local 2 // java.io.ByteArrayOutputStream bout
         1: .line 50
            aload 2 /* bout */
            aload 0 /* userName */
            getstatic com.mongodb.internal.authentication.NativeAuthenticationHelper.UTF_8_CHARSET:Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            invokevirtual java.io.ByteArrayOutputStream.write:([B)V
         2: .line 51
            aload 2 /* bout */
            ldc ":mongo:"
            getstatic com.mongodb.internal.authentication.NativeAuthenticationHelper.UTF_8_CHARSET:Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            invokevirtual java.io.ByteArrayOutputStream.write:([B)V
         3: .line 52
            aload 2 /* bout */
            new java.lang.String
            dup
            aload 1 /* password */
            invokespecial java.lang.String.<init>:([C)V
            getstatic com.mongodb.internal.authentication.NativeAuthenticationHelper.UTF_8_CHARSET:Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            invokevirtual java.io.ByteArrayOutputStream.write:([B)V
         4: .line 53
            goto 7
      StackMap locals: java.lang.String char[] java.io.ByteArrayOutputStream
      StackMap stack: java.io.IOException
         5: astore 3 /* ioe */
        start local 3 // java.io.IOException ioe
         6: .line 54
            new java.lang.RuntimeException
            dup
            ldc "impossible"
            aload 3 /* ioe */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 3 // java.io.IOException ioe
         7: .line 56
      StackMap locals:
      StackMap stack:
            aload 2 /* bout */
            invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
            invokestatic com.mongodb.internal.HexUtils.hexMD5:([B)Ljava/lang/String;
            areturn
        end local 2 // java.io.ByteArrayOutputStream bout
        end local 1 // char[] password
        end local 0 // java.lang.String userName
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    8     0  userName  Ljava/lang/String;
            0    8     1  password  [C
            1    8     2      bout  Ljava/io/ByteArrayOutputStream;
            6    7     3       ioe  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           1     4       5  Class java.io.IOException
    MethodParameters:
          Name  Flags
      userName  final
      password  final

  public static org.bson.BsonDocument getAuthCommand(java.lang.String, char[], java.lang.String);
    descriptor: (Ljava/lang/String;[CLjava/lang/String;)Lorg/bson/BsonDocument;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // java.lang.String userName
        start local 1 // char[] password
        start local 2 // java.lang.String nonce
         0: .line 60
            aload 0 /* userName */
            aload 0 /* userName */
            aload 1 /* password */
            invokestatic com.mongodb.internal.authentication.NativeAuthenticationHelper.createAuthenticationHash:(Ljava/lang/String;[C)Ljava/lang/String;
            aload 2 /* nonce */
            invokestatic com.mongodb.internal.authentication.NativeAuthenticationHelper.getAuthCommand:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/bson/BsonDocument;
            areturn
        end local 2 // java.lang.String nonce
        end local 1 // char[] password
        end local 0 // java.lang.String userName
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    1     0  userName  Ljava/lang/String;
            0    1     1  password  [C
            0    1     2     nonce  Ljava/lang/String;
    MethodParameters:
          Name  Flags
      userName  final
      password  final
      nonce     final

  public static org.bson.BsonDocument getAuthCommand(java.lang.String, java.lang.String, java.lang.String);
    descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lorg/bson/BsonDocument;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=5, args_size=3
        start local 0 // java.lang.String userName
        start local 1 // java.lang.String authHash
        start local 2 // java.lang.String nonce
         0: .line 64
            new java.lang.StringBuilder
            dup
            aload 2 /* nonce */
            invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* userName */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 1 /* authHash */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 3 /* key */
        start local 3 // java.lang.String key
         1: .line 66
            new org.bson.BsonDocument
            dup
            invokespecial org.bson.BsonDocument.<init>:()V
            astore 4 /* cmd */
        start local 4 // org.bson.BsonDocument cmd
         2: .line 68
            aload 4 /* cmd */
            ldc "authenticate"
            new org.bson.BsonInt32
            dup
            iconst_1
            invokespecial org.bson.BsonInt32.<init>:(I)V
            invokevirtual org.bson.BsonDocument.put:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonValue;
            pop
         3: .line 69
            aload 4 /* cmd */
            ldc "user"
            new org.bson.BsonString
            dup
            aload 0 /* userName */
            invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
            invokevirtual org.bson.BsonDocument.put:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonValue;
            pop
         4: .line 70
            aload 4 /* cmd */
            ldc "nonce"
            new org.bson.BsonString
            dup
            aload 2 /* nonce */
            invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
            invokevirtual org.bson.BsonDocument.put:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonValue;
            pop
         5: .line 71
            aload 4 /* cmd */
            ldc "key"
            new org.bson.BsonString
            dup
            aload 3 /* key */
            getstatic com.mongodb.internal.authentication.NativeAuthenticationHelper.UTF_8_CHARSET:Ljava/nio/charset/Charset;
            invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
            invokestatic com.mongodb.internal.HexUtils.hexMD5:([B)Ljava/lang/String;
            invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
            invokevirtual org.bson.BsonDocument.put:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonValue;
            pop
         6: .line 73
            aload 4 /* cmd */
            areturn
        end local 4 // org.bson.BsonDocument cmd
        end local 3 // java.lang.String key
        end local 2 // java.lang.String nonce
        end local 1 // java.lang.String authHash
        end local 0 // java.lang.String userName
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    7     0  userName  Ljava/lang/String;
            0    7     1  authHash  Ljava/lang/String;
            0    7     2     nonce  Ljava/lang/String;
            1    7     3       key  Ljava/lang/String;
            2    7     4       cmd  Lorg/bson/BsonDocument;
    MethodParameters:
          Name  Flags
      userName  final
      authHash  final
      nonce     final

  public static org.bson.BsonDocument getNonceCommand();
    descriptor: ()Lorg/bson/BsonDocument;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=6, locals=0, args_size=0
         0: .line 77
            new org.bson.BsonDocument
            dup
            ldc "getnonce"
            new org.bson.BsonInt32
            dup
            iconst_1
            invokespecial org.bson.BsonInt32.<init>:(I)V
            invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  private void <init>();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.mongodb.internal.authentication.NativeAuthenticationHelper this
         0: .line 80
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 81
            return
        end local 0 // com.mongodb.internal.authentication.NativeAuthenticationHelper this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/mongodb/internal/authentication/NativeAuthenticationHelper;
}
SourceFile: "NativeAuthenticationHelper.java"