class com.mongodb.internal.connection.SaslAuthenticator$1 implements java.security.PrivilegedAction<java.lang.Void>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.SaslAuthenticator$1
super_class: java.lang.Object
{
final com.mongodb.internal.connection.SaslAuthenticator this$0;
descriptor: Lcom/mongodb/internal/connection/SaslAuthenticator;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final com.mongodb.internal.connection.InternalConnection val$connection;
descriptor: Lcom/mongodb/internal/connection/InternalConnection;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(com.mongodb.internal.connection.SaslAuthenticator, com.mongodb.internal.connection.InternalConnection);
descriptor: (Lcom/mongodb/internal/connection/SaslAuthenticator;Lcom/mongodb/internal/connection/InternalConnection;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 0: aload 0
aload 1
putfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
aload 0
aload 2
putfield com.mongodb.internal.connection.SaslAuthenticator$1.val$connection:Lcom/mongodb/internal/connection/InternalConnection;
aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/SaslAuthenticator$1;
MethodParameters:
Name Flags
this$0 final
val$connection final
public java.lang.Void run();
descriptor: ()Ljava/lang/Void;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.val$connection:Lcom/mongodb/internal/connection/InternalConnection;
invokeinterface com.mongodb.internal.connection.InternalConnection.getDescription:()Lcom/mongodb/connection/ConnectionDescription;
invokevirtual com.mongodb.connection.ConnectionDescription.getServerAddress:()Lcom/mongodb/ServerAddress;
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.createSaslClient:(Lcom/mongodb/ServerAddress;)Ljavax/security/sasl/SaslClient;
astore 1
start local 1 1: aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
aload 1
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.throwIfSaslClientIsNull:(Ljavax/security/sasl/SaslClient;)V
2: aload 1
invokeinterface javax.security.sasl.SaslClient.hasInitialResponse:()Z
ifeq 3
aload 1
iconst_0
newarray 8
invokeinterface javax.security.sasl.SaslClient.evaluateChallenge:([B)[B
goto 4
StackMap locals: javax.security.sasl.SaslClient
StackMap stack:
3: aconst_null
StackMap locals:
StackMap stack: byte[]
4: astore 2
start local 2 5: aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
aload 2
aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.val$connection:Lcom/mongodb/internal/connection/InternalConnection;
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.sendSaslStart:([BLcom/mongodb/internal/connection/InternalConnection;)Lorg/bson/BsonDocument;
astore 3
start local 3 6: aload 3
ldc "conversationId"
invokevirtual org.bson.BsonDocument.getInt32:(Ljava/lang/Object;)Lorg/bson/BsonInt32;
astore 4
start local 4 7: goto 16
8: StackMap locals: byte[] org.bson.BsonDocument org.bson.BsonInt32
StackMap stack:
aload 1
aload 3
ldc "payload"
invokevirtual org.bson.BsonDocument.getBinary:(Ljava/lang/Object;)Lorg/bson/BsonBinary;
invokevirtual org.bson.BsonBinary.getData:()[B
invokeinterface javax.security.sasl.SaslClient.evaluateChallenge:([B)[B
astore 2
9: aload 2
ifnonnull 15
10: new com.mongodb.MongoSecurityException
dup
aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
11: new java.lang.StringBuilder
dup
ldc "SASL protocol error: no client response to challenge for credential "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
12: aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
13: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
14: invokespecial com.mongodb.MongoSecurityException.<init>:(Lcom/mongodb/MongoCredential;Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
aload 4
aload 2
aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.val$connection:Lcom/mongodb/internal/connection/InternalConnection;
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.sendSaslContinue:(Lorg/bson/BsonInt32;[BLcom/mongodb/internal/connection/InternalConnection;)Lorg/bson/BsonDocument;
astore 3
16: StackMap locals:
StackMap stack:
aload 3
ldc "done"
invokevirtual org.bson.BsonDocument.getBoolean:(Ljava/lang/Object;)Lorg/bson/BsonBoolean;
invokevirtual org.bson.BsonBoolean.getValue:()Z
ifeq 8
17: aload 1
invokeinterface javax.security.sasl.SaslClient.isComplete:()Z
ifne 30
18: aload 1
aload 3
ldc "payload"
invokevirtual org.bson.BsonDocument.getBinary:(Ljava/lang/Object;)Lorg/bson/BsonBinary;
invokevirtual org.bson.BsonBinary.getData:()[B
invokeinterface javax.security.sasl.SaslClient.evaluateChallenge:([B)[B
pop
19: aload 1
invokeinterface javax.security.sasl.SaslClient.isComplete:()Z
ifne 30
20: new com.mongodb.MongoSecurityException
dup
aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
21: new java.lang.StringBuilder
dup
ldc "SASL protocol error: server completed challenges before client completed responses "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
22: aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.getMongoCredential:()Lcom/mongodb/MongoCredential;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
23: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
24: invokespecial com.mongodb.MongoSecurityException.<init>:(Lcom/mongodb/MongoCredential;Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 25: StackMap locals: com.mongodb.internal.connection.SaslAuthenticator$1 javax.security.sasl.SaslClient
StackMap stack: java.lang.Exception
astore 2
start local 2 26: aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
aload 2
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.wrapException:(Ljava/lang/Throwable;)Lcom/mongodb/MongoException;
athrow
end local 2 27: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
28: aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
aload 1
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.disposeOfSaslClient:(Ljavax/security/sasl/SaslClient;)V
29: aload 5
athrow
30: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.SaslAuthenticator$1.this$0:Lcom/mongodb/internal/connection/SaslAuthenticator;
aload 1
invokevirtual com.mongodb.internal.connection.SaslAuthenticator.disposeOfSaslClient:(Ljavax/security/sasl/SaslClient;)V
31: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lcom/mongodb/internal/connection/SaslAuthenticator$1;
1 32 1 saslClient Ljavax/security/sasl/SaslClient;
5 25 2 response [B
6 25 3 res Lorg/bson/BsonDocument;
7 25 4 conversationId Lorg/bson/BsonInt32;
26 27 2 e Ljava/lang/Exception;
Exception table:
from to target type
2 25 25 Class java.lang.Exception
2 27 27 any
public java.lang.Object run();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.mongodb.internal.connection.SaslAuthenticator$1.run:()Ljava/lang/Void;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/security/PrivilegedAction<Ljava/lang/Void;>;
SourceFile: "SaslAuthenticator.java"
EnclosingMethod: com.mongodb.internal.connection.SaslAuthenticator.authenticate:(Lcom/mongodb/internal/connection/InternalConnection;Lcom/mongodb/connection/ConnectionDescription;)V
NestHost: com.mongodb.internal.connection.SaslAuthenticator
InnerClasses:
com.mongodb.internal.connection.SaslAuthenticator$1