class com.mongodb.internal.connection.NativeAuthenticator extends com.mongodb.internal.connection.Authenticator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.NativeAuthenticator
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 start local 1 0: aload 0
aload 1
invokespecial com.mongodb.internal.connection.Authenticator.<init>:(Lcom/mongodb/internal/connection/MongoCredentialWithCache;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/NativeAuthenticator;
0 2 1 credential Lcom/mongodb/internal/connection/MongoCredentialWithCache;
MethodParameters:
Name Flags
credential final
public void authenticate(com.mongodb.internal.connection.InternalConnection, com.mongodb.connection.ConnectionDescription);
descriptor: (Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/connection/ConnectionDescription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual com.mongodb.internal.connection.NativeAuthenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
invokevirtual com.mongodb.MongoCredential.getSource:()Ljava/lang/String;
1: invokestatic com.mongodb.internal.authentication.NativeAuthenticationHelper.getNonceCommand:()Lorg/bson/BsonDocument;
2: aload 1
3: invokestatic com.mongodb.internal.connection.CommandHelper.executeCommand:(Ljava/lang/String;Lorg/bson/BsonDocument;Lcom/mongodb/internal/connection/InternalConnection;)Lorg/bson/BsonDocument;
astore 3
start local 3 4: aload 0
invokevirtual com.mongodb.internal.connection.NativeAuthenticator.getUserNameNonNull:()Ljava/lang/String;
5: aload 0
invokevirtual com.mongodb.internal.connection.NativeAuthenticator.getPasswordNonNull:()[C
6: aload 3
ldc "nonce"
invokevirtual org.bson.BsonDocument.get:(Ljava/lang/Object;)Lorg/bson/BsonValue;
checkcast org.bson.BsonString
invokevirtual org.bson.BsonString.getValue:()Ljava/lang/String;
7: invokestatic com.mongodb.internal.authentication.NativeAuthenticationHelper.getAuthCommand:(Ljava/lang/String;[CLjava/lang/String;)Lorg/bson/BsonDocument;
astore 4
start local 4 8: aload 0
invokevirtual com.mongodb.internal.connection.NativeAuthenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
invokevirtual com.mongodb.MongoCredential.getSource:()Ljava/lang/String;
aload 4
aload 1
invokestatic com.mongodb.internal.connection.CommandHelper.executeCommand:(Ljava/lang/String;Lorg/bson/BsonDocument;Lcom/mongodb/internal/connection/InternalConnection;)Lorg/bson/BsonDocument;
pop
end local 4 end local 3 9: goto 12
StackMap locals:
StackMap stack: com.mongodb.MongoCommandException
10: astore 3
start local 3 11: new com.mongodb.MongoSecurityException
dup
aload 0
invokevirtual com.mongodb.internal.connection.NativeAuthenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
ldc "Exception authenticating"
aload 3
invokespecial com.mongodb.MongoSecurityException.<init>:(Lcom/mongodb/MongoCredential;Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/mongodb/internal/connection/NativeAuthenticator;
0 13 1 connection Lcom/mongodb/internal/connection/InternalConnection;
0 13 2 connectionDescription Lcom/mongodb/connection/ConnectionDescription;
4 9 3 nonceResponse Lorg/bson/BsonDocument;
8 9 4 authCommand Lorg/bson/BsonDocument;
11 12 3 e Lcom/mongodb/MongoCommandException;
Exception table:
from to target type
0 9 10 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=8, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual com.mongodb.internal.connection.NativeAuthenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
invokevirtual com.mongodb.MongoCredential.getSource:()Ljava/lang/String;
invokestatic com.mongodb.internal.authentication.NativeAuthenticationHelper.getNonceCommand:()Lorg/bson/BsonDocument;
aload 1
1: new com.mongodb.internal.connection.NativeAuthenticator$1
dup
aload 0
aload 3
aload 1
invokespecial com.mongodb.internal.connection.NativeAuthenticator$1.<init>:(Lcom/mongodb/internal/connection/NativeAuthenticator;Lcom/mongodb/async/SingleResultCallback;Lcom/mongodb/internal/connection/InternalConnection;)V
2: invokestatic com.mongodb.internal.connection.CommandHelper.executeCommandAsync:(Ljava/lang/String;Lorg/bson/BsonDocument;Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/async/SingleResultCallback;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/connection/NativeAuthenticator;
0 4 1 connection Lcom/mongodb/internal/connection/InternalConnection;
0 4 2 connectionDescription Lcom/mongodb/connection/ConnectionDescription;
0 4 3 callback Lcom/mongodb/async/SingleResultCallback<Ljava/lang/Void;>;
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 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 start local 1 0: aload 1
instanceof com.mongodb.MongoCommandException
ifeq 2
1: new com.mongodb.MongoSecurityException
dup
aload 0
invokevirtual com.mongodb.internal.connection.NativeAuthenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
ldc "Exception authenticating"
aload 1
invokespecial com.mongodb.MongoSecurityException.<init>:(Lcom/mongodb/MongoCredential;Ljava/lang/String;Ljava/lang/Throwable;)V
areturn
2: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/internal/connection/NativeAuthenticator;
0 3 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t final
}
SourceFile: "NativeAuthenticator.java"
NestMembers:
com.mongodb.internal.connection.NativeAuthenticator$1 com.mongodb.internal.connection.NativeAuthenticator$1$1
InnerClasses:
com.mongodb.internal.connection.NativeAuthenticator$1