class com.mongodb.internal.connection.X509Authenticator extends com.mongodb.internal.connection.Authenticator
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: com.mongodb.internal.connection.X509Authenticator
  super_class: com.mongodb.internal.connection.Authenticator
{
  void <init>(com.mongodb.internal.connection.MongoCredentialWithCache);
    descriptor: (Lcom/mongodb/internal/connection/MongoCredentialWithCache;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // com.mongodb.internal.connection.X509Authenticator this
        start local 1 // com.mongodb.internal.connection.MongoCredentialWithCache credential
         0: .line 34
            aload 0 /* this */
            aload 1 /* credential */
            invokespecial com.mongodb.internal.connection.Authenticator.<init>:(Lcom/mongodb/internal/connection/MongoCredentialWithCache;)V
         1: .line 35
            return
        end local 1 // com.mongodb.internal.connection.MongoCredentialWithCache credential
        end local 0 // com.mongodb.internal.connection.X509Authenticator this
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            0    2     0        this  Lcom/mongodb/internal/connection/X509Authenticator;
            0    2     1  credential  Lcom/mongodb/internal/connection/MongoCredentialWithCache;
    MethodParameters:
            Name  Flags
      credential  final

  void authenticate(com.mongodb.internal.connection.InternalConnection, com.mongodb.connection.ConnectionDescription);
    descriptor: (Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/connection/ConnectionDescription;)V
    flags: (0x0000) 
    Code:
      stack=5, locals=4, args_size=3
        start local 0 // com.mongodb.internal.connection.X509Authenticator this
        start local 1 // com.mongodb.internal.connection.InternalConnection connection
        start local 2 // com.mongodb.connection.ConnectionDescription connectionDescription
         0: .line 40
            aload 0 /* this */
            aload 2 /* connectionDescription */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.validateUserName:(Lcom/mongodb/connection/ConnectionDescription;)V
         1: .line 41
            aload 0 /* this */
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
            invokevirtual com.mongodb.MongoCredential.getUserName:()Ljava/lang/String;
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getAuthCommand:(Ljava/lang/String;)Lorg/bson/BsonDocument;
            astore 3 /* authCommand */
        start local 3 // org.bson.BsonDocument authCommand
         2: .line 42
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
            invokevirtual com.mongodb.MongoCredential.getSource:()Ljava/lang/String;
            aload 3 /* authCommand */
            aload 1 /* connection */
            invokestatic com.mongodb.internal.connection.CommandHelper.executeCommand:(Ljava/lang/String;Lorg/bson/BsonDocument;Lcom/mongodb/internal/connection/InternalConnection;)Lorg/bson/BsonDocument;
            pop
        end local 3 // org.bson.BsonDocument authCommand
         3: .line 43
            goto 6
      StackMap locals:
      StackMap stack: com.mongodb.MongoCommandException
         4: astore 3 /* e */
        start local 3 // com.mongodb.MongoCommandException e
         5: .line 44
            new com.mongodb.MongoSecurityException
            dup
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
            ldc "Exception authenticating"
            aload 3 /* e */
            invokespecial com.mongodb.MongoSecurityException.<init>:(Lcom/mongodb/MongoCredential;Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 3 // com.mongodb.MongoCommandException e
         6: .line 46
      StackMap locals:
      StackMap stack:
            return
        end local 2 // com.mongodb.connection.ConnectionDescription connectionDescription
        end local 1 // com.mongodb.internal.connection.InternalConnection connection
        end local 0 // com.mongodb.internal.connection.X509Authenticator this
      LocalVariableTable:
        Start  End  Slot                   Name  Signature
            0    7     0                   this  Lcom/mongodb/internal/connection/X509Authenticator;
            0    7     1             connection  Lcom/mongodb/internal/connection/InternalConnection;
            0    7     2  connectionDescription  Lcom/mongodb/connection/ConnectionDescription;
            2    3     3            authCommand  Lorg/bson/BsonDocument;
            5    6     3                      e  Lcom/mongodb/MongoCommandException;
      Exception table:
        from    to  target  type
           0     3       4  Class com.mongodb.MongoCommandException
    MethodParameters:
                       Name  Flags
      connection             final
      connectionDescription  final

  void authenticateAsync(com.mongodb.internal.connection.InternalConnection, com.mongodb.connection.ConnectionDescription, com.mongodb.async.SingleResultCallback<java.lang.Void>);
    descriptor: (Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/connection/ConnectionDescription;Lcom/mongodb/async/SingleResultCallback;)V
    flags: (0x0000) 
    Code:
      stack=7, locals=5, args_size=4
        start local 0 // com.mongodb.internal.connection.X509Authenticator this
        start local 1 // com.mongodb.internal.connection.InternalConnection connection
        start local 2 // com.mongodb.connection.ConnectionDescription connectionDescription
        start local 3 // com.mongodb.async.SingleResultCallback callback
         0: .line 52
            aload 0 /* this */
            aload 2 /* connectionDescription */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.validateUserName:(Lcom/mongodb/connection/ConnectionDescription;)V
         1: .line 53
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
            invokevirtual com.mongodb.MongoCredential.getSource:()Ljava/lang/String;
            aload 0 /* this */
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
            invokevirtual com.mongodb.MongoCredential.getUserName:()Ljava/lang/String;
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getAuthCommand:(Ljava/lang/String;)Lorg/bson/BsonDocument;
            aload 1 /* connection */
         2: .line 54
            new com.mongodb.internal.connection.X509Authenticator$1
            dup
            aload 0 /* this */
            aload 3 /* callback */
            invokespecial com.mongodb.internal.connection.X509Authenticator$1.<init>:(Lcom/mongodb/internal/connection/X509Authenticator;Lcom/mongodb/async/SingleResultCallback;)V
         3: .line 53
            invokestatic com.mongodb.internal.connection.CommandHelper.executeCommandAsync:(Ljava/lang/String;Lorg/bson/BsonDocument;Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/async/SingleResultCallback;)V
         4: .line 64
            goto 7
      StackMap locals:
      StackMap stack: java.lang.Throwable
         5: astore 4 /* t */
        start local 4 // java.lang.Throwable t
         6: .line 65
            aload 3 /* callback */
            aconst_null
            aload 4 /* t */
            invokeinterface com.mongodb.async.SingleResultCallback.onResult:(Ljava/lang/Object;Ljava/lang/Throwable;)V
        end local 4 // java.lang.Throwable t
         7: .line 67
      StackMap locals:
      StackMap stack:
            return
        end local 3 // com.mongodb.async.SingleResultCallback callback
        end local 2 // com.mongodb.connection.ConnectionDescription connectionDescription
        end local 1 // com.mongodb.internal.connection.InternalConnection connection
        end local 0 // com.mongodb.internal.connection.X509Authenticator this
      LocalVariableTable:
        Start  End  Slot                   Name  Signature
            0    8     0                   this  Lcom/mongodb/internal/connection/X509Authenticator;
            0    8     1             connection  Lcom/mongodb/internal/connection/InternalConnection;
            0    8     2  connectionDescription  Lcom/mongodb/connection/ConnectionDescription;
            0    8     3               callback  Lcom/mongodb/async/SingleResultCallback<Ljava/lang/Void;>;
            6    7     4                      t  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           0     4       5  Class java.lang.Throwable
    Signature: (Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/connection/ConnectionDescription;Lcom/mongodb/async/SingleResultCallback<Ljava/lang/Void;>;)V
    MethodParameters:
                       Name  Flags
      connection             final
      connectionDescription  final
      callback               final

  private org.bson.BsonDocument getAuthCommand(java.lang.String);
    descriptor: (Ljava/lang/String;)Lorg/bson/BsonDocument;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=3, args_size=2
        start local 0 // com.mongodb.internal.connection.X509Authenticator this
        start local 1 // java.lang.String userName
         0: .line 70
            new org.bson.BsonDocument
            dup
            invokespecial org.bson.BsonDocument.<init>:()V
            astore 2 /* cmd */
        start local 2 // org.bson.BsonDocument cmd
         1: .line 72
            aload 2 /* 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
         2: .line 73
            aload 1 /* userName */
            ifnull 4
         3: .line 74
            aload 2 /* cmd */
            ldc "user"
            new org.bson.BsonString
            dup
            aload 1 /* 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 76
      StackMap locals: org.bson.BsonDocument
      StackMap stack:
            aload 2 /* cmd */
            ldc "mechanism"
            new org.bson.BsonString
            dup
            getstatic com.mongodb.AuthenticationMechanism.MONGODB_X509:Lcom/mongodb/AuthenticationMechanism;
            invokevirtual com.mongodb.AuthenticationMechanism.getMechanismName:()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
         5: .line 78
            aload 2 /* cmd */
            areturn
        end local 2 // org.bson.BsonDocument cmd
        end local 1 // java.lang.String userName
        end local 0 // com.mongodb.internal.connection.X509Authenticator this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    6     0      this  Lcom/mongodb/internal/connection/X509Authenticator;
            0    6     1  userName  Ljava/lang/String;
            1    6     2       cmd  Lorg/bson/BsonDocument;
    MethodParameters:
          Name  Flags
      userName  final

  private java.lang.Throwable translateThrowable(java.lang.Throwable);
    descriptor: (Ljava/lang/Throwable;)Ljava/lang/Throwable;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // com.mongodb.internal.connection.X509Authenticator this
        start local 1 // java.lang.Throwable t
         0: .line 82
            aload 1 /* t */
            instanceof com.mongodb.MongoCommandException
            ifeq 2
         1: .line 83
            new com.mongodb.MongoSecurityException
            dup
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
            ldc "Exception authenticating"
            aload 1 /* t */
            invokespecial com.mongodb.MongoSecurityException.<init>:(Lcom/mongodb/MongoCredential;Ljava/lang/String;Ljava/lang/Throwable;)V
            areturn
         2: .line 85
      StackMap locals:
      StackMap stack:
            aload 1 /* t */
            areturn
        end local 1 // java.lang.Throwable t
        end local 0 // com.mongodb.internal.connection.X509Authenticator this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lcom/mongodb/internal/connection/X509Authenticator;
            0    3     1     t  Ljava/lang/Throwable;
    MethodParameters:
      Name  Flags
      t     final

  private void validateUserName(com.mongodb.connection.ConnectionDescription);
    descriptor: (Lcom/mongodb/connection/ConnectionDescription;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // com.mongodb.internal.connection.X509Authenticator this
        start local 1 // com.mongodb.connection.ConnectionDescription connectionDescription
         0: .line 90
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
            invokevirtual com.mongodb.MongoCredential.getUserName:()Ljava/lang/String;
            ifnonnull 2
            aload 1 /* connectionDescription */
            invokestatic com.mongodb.internal.operation.ServerVersionHelper.serverIsLessThanVersionThreeDotFour:(Lcom/mongodb/connection/ConnectionDescription;)Z
            ifeq 2
         1: .line 91
            new com.mongodb.MongoSecurityException
            dup
            aload 0 /* this */
            invokevirtual com.mongodb.internal.connection.X509Authenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
            ldc "User name is required for the MONGODB-X509 authentication mechanism on server versions less than 3.4"
            invokespecial com.mongodb.MongoSecurityException.<init>:(Lcom/mongodb/MongoCredential;Ljava/lang/String;)V
            athrow
         2: .line 94
      StackMap locals:
      StackMap stack:
            return
        end local 1 // com.mongodb.connection.ConnectionDescription connectionDescription
        end local 0 // com.mongodb.internal.connection.X509Authenticator this
      LocalVariableTable:
        Start  End  Slot                   Name  Signature
            0    3     0                   this  Lcom/mongodb/internal/connection/X509Authenticator;
            0    3     1  connectionDescription  Lcom/mongodb/connection/ConnectionDescription;
    MethodParameters:
                       Name  Flags
      connectionDescription  final
}
SourceFile: "X509Authenticator.java"
NestMembers:
  com.mongodb.internal.connection.X509Authenticator$1
InnerClasses:
  com.mongodb.internal.connection.X509Authenticator$1