class com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient implements javax.security.sasl.SaslClient
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient
super_class: java.lang.Object
{
private final com.mongodb.internal.connection.MongoCredentialWithCache credential;
descriptor: Lcom/mongodb/internal/connection/MongoCredentialWithCache;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.internal.connection.ScramShaAuthenticator$RandomStringGenerator randomStringGenerator;
descriptor: Lcom/mongodb/internal/connection/ScramShaAuthenticator$RandomStringGenerator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final com.mongodb.internal.connection.ScramShaAuthenticator$AuthenticationHashGenerator authenticationHashGenerator;
descriptor: Lcom/mongodb/internal/connection/ScramShaAuthenticator$AuthenticationHashGenerator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String hAlgorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String hmacAlgorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String clientFirstMessageBare;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String clientNonce;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private byte[] serverSignature;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int step;
descriptor: I
flags: (0x0002) ACC_PRIVATE
final com.mongodb.internal.connection.ScramShaAuthenticator this$0;
descriptor: Lcom/mongodb/internal/connection/ScramShaAuthenticator;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(com.mongodb.internal.connection.ScramShaAuthenticator, com.mongodb.internal.connection.MongoCredentialWithCache, com.mongodb.internal.connection.ScramShaAuthenticator$RandomStringGenerator, com.mongodb.internal.connection.ScramShaAuthenticator$AuthenticationHashGenerator);
descriptor: (Lcom/mongodb/internal/connection/ScramShaAuthenticator;Lcom/mongodb/internal/connection/MongoCredentialWithCache;Lcom/mongodb/internal/connection/ScramShaAuthenticator$RandomStringGenerator;Lcom/mongodb/internal/connection/ScramShaAuthenticator$AuthenticationHashGenerator;)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=5
start local 0 start local 2 start local 3 start local 4 0: aload 0
aload 1
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.this$0:Lcom/mongodb/internal/connection/ScramShaAuthenticator;
1: aload 0
invokespecial java.lang.Object.<init>:()V
2: aload 0
iconst_m1
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.step:I
3: aload 0
aload 2
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.credential:Lcom/mongodb/internal/connection/MongoCredentialWithCache;
4: aload 0
aload 3
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.randomStringGenerator:Lcom/mongodb/internal/connection/ScramShaAuthenticator$RandomStringGenerator;
5: aload 0
aload 4
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.authenticationHashGenerator:Lcom/mongodb/internal/connection/ScramShaAuthenticator$AuthenticationHashGenerator;
6: aload 2
invokevirtual com.mongodb.internal.connection.MongoCredentialWithCache.getAuthenticationMechanism:()Lcom/mongodb/AuthenticationMechanism;
getstatic com.mongodb.AuthenticationMechanism.SCRAM_SHA_1:Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.equals:(Ljava/lang/Object;)Z
ifeq 10
7: aload 0
ldc "SHA-1"
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hAlgorithm:Ljava/lang/String;
8: aload 0
ldc "HmacSHA1"
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmacAlgorithm:Ljava/lang/String;
9: goto 12
10: StackMap locals: com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient com.mongodb.internal.connection.ScramShaAuthenticator com.mongodb.internal.connection.MongoCredentialWithCache com.mongodb.internal.connection.ScramShaAuthenticator$RandomStringGenerator com.mongodb.internal.connection.ScramShaAuthenticator$AuthenticationHashGenerator
StackMap stack:
aload 0
ldc "SHA-256"
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hAlgorithm:Ljava/lang/String;
11: aload 0
ldc "HmacSHA256"
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmacAlgorithm:Ljava/lang/String;
12: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 13 2 credential Lcom/mongodb/internal/connection/MongoCredentialWithCache;
0 13 3 randomStringGenerator Lcom/mongodb/internal/connection/ScramShaAuthenticator$RandomStringGenerator;
0 13 4 authenticationHashGenerator Lcom/mongodb/internal/connection/ScramShaAuthenticator$AuthenticationHashGenerator;
MethodParameters:
Name Flags
this$0 final
credential final
randomStringGenerator final
authenticationHashGenerator final
public java.lang.String getMechanismName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.credential:Lcom/mongodb/internal/connection/MongoCredentialWithCache;
invokevirtual com.mongodb.internal.connection.MongoCredentialWithCache.getAuthenticationMechanism:()Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.getMechanismName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
public boolean hasInitialResponse();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
public byte[] evaluateChallenge(byte[]);
descriptor: ([B)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.step:I
iconst_1
iadd
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.step:I
1: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.step:I
ifne 3
2: aload 0
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.computeClientFirstMessage:()[B
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.step:I
iconst_1
if_icmpne 5
4: aload 0
aload 1
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.computeClientFinalMessage:([B)[B
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.step:I
iconst_2
if_icmpne 7
6: aload 0
aload 1
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.validateServerSignature:([B)[B
areturn
7: StackMap locals:
StackMap stack:
new javax.security.sasl.SaslException
dup
ldc "Too many steps involved in the %s negotiation."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.getMechanismName:()Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 8 1 challenge [B
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
challenge final
private byte[] validateServerSignature(byte[]);
descriptor: ([B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.encodeUTF8:([B)Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.parseServerResponse:(Ljava/lang/String;)Ljava/util/HashMap;
astore 3
start local 3 2: aload 0
aload 3
ldc "v"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.decodeBase64:(Ljava/lang/String;)[B
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.serverSignature:[B
invokestatic java.security.MessageDigest.isEqual:([B[B)Z
ifne 4
3: new javax.security.sasl.SaslException
dup
ldc "Server signature was invalid."
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.lang.String java.util.HashMap
StackMap stack:
aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 5 1 challenge [B
1 5 2 serverResponse Ljava/lang/String;
2 5 3 map Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
challenge final
public boolean isComplete();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.step:I
iconst_2
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
public byte[] unwrap(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.UnsupportedOperationException
dup
ldc "Not implemented yet!"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 1 1 incoming [B
0 1 2 offset I
0 1 3 len I
MethodParameters:
Name Flags
incoming final
offset final
len final
public byte[] wrap(byte[], int, int);
descriptor: ([BII)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.UnsupportedOperationException
dup
ldc "Not implemented yet!"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 1 1 outgoing [B
0 1 2 offset I
0 1 3 len I
MethodParameters:
Name Flags
outgoing final
offset final
len final
public java.lang.Object getNegotiatedProperty(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.UnsupportedOperationException
dup
ldc "Not implemented yet!"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 1 1 propName Ljava/lang/String;
MethodParameters:
Name Flags
propName final
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
private byte[] computeClientFirstMessage();
descriptor: ()[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.randomStringGenerator:Lcom/mongodb/internal/connection/ScramShaAuthenticator$RandomStringGenerator;
bipush 24
invokeinterface com.mongodb.internal.connection.ScramShaAuthenticator$RandomStringGenerator.generate:(I)Ljava/lang/String;
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.clientNonce:Ljava/lang/String;
1: new java.lang.StringBuilder
dup
ldc "n="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.getUserName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ",r="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.clientNonce:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 2: aload 0
aload 1
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.clientFirstMessageBare:Ljava/lang/String;
3: aload 0
new java.lang.StringBuilder
dup
ldc "n,,"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.decodeUTF8:(Ljava/lang/String;)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
2 4 1 clientFirstMessage Ljava/lang/String;
Exceptions:
throws javax.security.sasl.SaslException
private byte[] computeClientFinalMessage(byte[]);
descriptor: ([B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.encodeUTF8:([B)Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.parseServerResponse:(Ljava/lang/String;)Ljava/util/HashMap;
astore 3
start local 3 2: aload 3
ldc "r"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 3: aload 4
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.clientNonce:Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 5
4: new javax.security.sasl.SaslException
dup
ldc "Server sent an invalid nonce."
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.String java.util.HashMap java.lang.String
StackMap stack:
aload 3
ldc "s"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 6: aload 3
ldc "i"
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 6
start local 6 7: iload 6
sipush 4096
if_icmpge 9
8: new javax.security.sasl.SaslException
dup
ldc "Invalid iteration count."
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: java.lang.String int
StackMap stack:
new java.lang.StringBuilder
dup
ldc "c="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
ldc "n,,"
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.encodeBase64:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ",r="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
start local 7 10: new java.lang.StringBuilder
dup
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.clientFirstMessageBare:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ","
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
start local 8 11: new java.lang.StringBuilder
dup
aload 7
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ",p="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: aload 0
aload 0
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.getAuthenicationHash:()Ljava/lang/String;
aload 5
iload 6
aload 8
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.getClientProof:(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
start local 9 14: aload 0
aload 9
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.decodeUTF8:(Ljava/lang/String;)[B
areturn
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 15 1 challenge [B
1 15 2 serverFirstMessage Ljava/lang/String;
2 15 3 map Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;
3 15 4 serverNonce Ljava/lang/String;
6 15 5 salt Ljava/lang/String;
7 15 6 iterationCount I
10 15 7 clientFinalMessageWithoutProof Ljava/lang/String;
11 15 8 authMessage Ljava/lang/String;
14 15 9 clientFinalMessage Ljava/lang/String;
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
challenge final
java.lang.String getClientProof(java.lang.String, java.lang.String, int, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
flags: (0x0000)
Code:
stack=6, locals=11, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 0
aload 0
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.decodeUTF8:(Ljava/lang/String;)[B
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.h:([B)[B
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.encodeUTF8:([B)Ljava/lang/String;
astore 5
start local 5 1: new com.mongodb.internal.connection.ScramShaAuthenticator$CacheKey
dup
aload 5
aload 2
iload 3
invokespecial com.mongodb.internal.connection.ScramShaAuthenticator$CacheKey.<init>:(Ljava/lang/String;Ljava/lang/String;I)V
astore 6
start local 6 2: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.this$0:Lcom/mongodb/internal/connection/ScramShaAuthenticator;
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator.getMongoCredentialWithCache:()Lcom/mongodb/internal/connection/MongoCredentialWithCache;
aload 6
ldc Lcom/mongodb/internal/connection/ScramShaAuthenticator$CacheValue;
invokevirtual com.mongodb.internal.connection.MongoCredentialWithCache.getFromCache:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue
astore 7
start local 7 3: aload 7
ifnonnull 9
4: aload 0
aload 0
aload 1
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.decodeUTF8:(Ljava/lang/String;)[B
aload 0
aload 2
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.decodeBase64:(Ljava/lang/String;)[B
iload 3
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hi:([B[BI)[B
astore 8
start local 8 5: aload 0
aload 8
ldc "Client Key"
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmac:([BLjava/lang/String;)[B
astore 9
start local 9 6: aload 0
aload 8
ldc "Server Key"
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmac:([BLjava/lang/String;)[B
astore 10
start local 10 7: new com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue
dup
aload 9
aload 10
invokespecial com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue.<init>:([B[B)V
astore 7
8: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.this$0:Lcom/mongodb/internal/connection/ScramShaAuthenticator;
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator.getMongoCredentialWithCache:()Lcom/mongodb/internal/connection/MongoCredentialWithCache;
aload 6
new com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue
dup
aload 9
aload 10
invokespecial com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue.<init>:([B[B)V
invokevirtual com.mongodb.internal.connection.MongoCredentialWithCache.putInCache:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 10 end local 9 end local 8 9: StackMap locals: java.lang.String com.mongodb.internal.connection.ScramShaAuthenticator$CacheKey com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue
StackMap stack:
aload 0
aload 0
aload 7
getfield com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue.serverKey:[B
aload 4
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmac:([BLjava/lang/String;)[B
putfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.serverSignature:[B
10: aload 0
aload 7
getfield com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue.clientKey:[B
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.h:([B)[B
astore 8
start local 8 11: aload 0
aload 8
aload 4
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmac:([BLjava/lang/String;)[B
astore 9
start local 9 12: aload 0
aload 7
getfield com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue.clientKey:[B
aload 9
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.xor:([B[B)[B
astore 10
start local 10 13: aload 0
aload 10
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.encodeBase64:([B)Ljava/lang/String;
areturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 14 1 password Ljava/lang/String;
0 14 2 salt Ljava/lang/String;
0 14 3 iterationCount I
0 14 4 authMessage Ljava/lang/String;
1 14 5 hashedPasswordAndSalt Ljava/lang/String;
2 14 6 cacheKey Lcom/mongodb/internal/connection/ScramShaAuthenticator$CacheKey;
3 14 7 cachedKeys Lcom/mongodb/internal/connection/ScramShaAuthenticator$CacheValue;
5 9 8 saltedPassword [B
6 9 9 clientKey [B
7 9 10 serverKey [B
11 14 8 storedKey [B
12 14 9 clientSignature [B
13 14 10 clientProof [B
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
password final
salt final
iterationCount final
authMessage final
private byte[] decodeBase64(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.bson.internal.Base64.decode:(Ljava/lang/String;)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 1 1 str Ljava/lang/String;
MethodParameters:
Name Flags
str final
private byte[] decodeUTF8(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
1: areturn
2: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
astore 2
start local 2 3: new javax.security.sasl.SaslException
dup
ldc "UTF-8 is not a supported encoding."
aload 2
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 4 1 str Ljava/lang/String;
3 4 2 e Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
0 1 2 Class java.io.UnsupportedEncodingException
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
str final
private java.lang.String encodeBase64(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.decodeUTF8:(Ljava/lang/String;)[B
invokestatic org.bson.internal.Base64.encode:([B)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 1 1 str Ljava/lang/String;
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
str final
private java.lang.String encodeBase64(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.bson.internal.Base64.encode:([B)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 1 1 bytes [B
MethodParameters:
Name Flags
bytes final
private java.lang.String encodeUTF8(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.String
dup
aload 1
ldc "UTF-8"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
1: areturn
2: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
astore 2
start local 2 3: new javax.security.sasl.SaslException
dup
ldc "UTF-8 is not a supported encoding."
aload 2
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 4 1 bytes [B
3 4 2 e Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
0 1 2 Class java.io.UnsupportedEncodingException
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
bytes final
private byte[] h(byte[]);
descriptor: ([B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hAlgorithm:Ljava/lang/String;
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
aload 1
invokevirtual java.security.MessageDigest.digest:([B)[B
1: areturn
2: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 2
start local 2 3: new javax.security.sasl.SaslException
dup
ldc "Algorithm for '%s' could not be found."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hAlgorithm:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 2
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 4 1 data [B
3 4 2 e Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
0 1 2 Class java.security.NoSuchAlgorithmException
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
data final
private byte[] hi(byte[], byte[], int);
descriptor: ([B[BI)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new javax.crypto.spec.SecretKeySpec
dup
aload 1
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmacAlgorithm:Ljava/lang/String;
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
astore 4
start local 4 1: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmacAlgorithm:Ljava/lang/String;
invokestatic javax.crypto.Mac.getInstance:(Ljava/lang/String;)Ljavax/crypto/Mac;
astore 5
start local 5 2: aload 5
aload 4
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
3: aload 5
aload 2
invokevirtual javax.crypto.Mac.update:([B)V
4: aload 5
getstatic com.mongodb.internal.connection.ScramShaAuthenticator.INT_1:[B
invokevirtual javax.crypto.Mac.update:([B)V
5: aload 5
invokevirtual javax.crypto.Mac.doFinal:()[B
astore 6
start local 6 6: aconst_null
astore 7
start local 7 7: iconst_1
istore 8
start local 8 8: goto 15
9: StackMap locals: com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient byte[] byte[] int javax.crypto.spec.SecretKeySpec javax.crypto.Mac byte[] byte[] int
StackMap stack:
aload 5
aload 7
ifnull 10
aload 7
goto 11
StackMap locals:
StackMap stack: javax.crypto.Mac
10: aload 6
StackMap locals: com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient byte[] byte[] int javax.crypto.spec.SecretKeySpec javax.crypto.Mac byte[] byte[] int
StackMap stack: javax.crypto.Mac byte[]
11: invokevirtual javax.crypto.Mac.update:([B)V
12: aload 5
invokevirtual javax.crypto.Mac.doFinal:()[B
astore 7
13: aload 0
aload 6
aload 7
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.xorInPlace:([B[B)[B
pop
14: iinc 8 1
StackMap locals:
StackMap stack:
15: iload 8
iload 3
if_icmplt 9
end local 8 16: aload 6
17: areturn
end local 7 end local 6 end local 5 end local 4 18: StackMap locals: com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient byte[] byte[] int
StackMap stack: java.security.NoSuchAlgorithmException
astore 4
start local 4 19: new javax.security.sasl.SaslException
dup
ldc "Algorithm for '%s' could not be found."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmacAlgorithm:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 20: StackMap locals:
StackMap stack: java.security.InvalidKeyException
astore 4
start local 4 21: new javax.security.sasl.SaslException
dup
ldc "Invalid key for %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmacAlgorithm:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 22 1 password [B
0 22 2 salt [B
0 22 3 iterations I
1 18 4 key Ljavax/crypto/spec/SecretKeySpec;
2 18 5 mac Ljavax/crypto/Mac;
6 18 6 result [B
7 18 7 previous [B
8 16 8 i I
19 20 4 e Ljava/security/NoSuchAlgorithmException;
21 22 4 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
0 17 18 Class java.security.NoSuchAlgorithmException
0 17 20 Class java.security.InvalidKeyException
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
password final
salt final
iterations final
private byte[] hmac(byte[], java.lang.String);
descriptor: ([BLjava/lang/String;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmacAlgorithm:Ljava/lang/String;
invokestatic javax.crypto.Mac.getInstance:(Ljava/lang/String;)Ljavax/crypto/Mac;
astore 3
start local 3 1: aload 3
new javax.crypto.spec.SecretKeySpec
dup
aload 1
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmacAlgorithm:Ljava/lang/String;
invokespecial javax.crypto.spec.SecretKeySpec.<init>:([BLjava/lang/String;)V
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;)V
2: aload 3
aload 0
aload 2
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.decodeUTF8:(Ljava/lang/String;)[B
invokevirtual javax.crypto.Mac.doFinal:([B)[B
3: areturn
end local 3 4: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 3
start local 3 5: new javax.security.sasl.SaslException
dup
ldc "Algorithm for '%s' could not be found."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.hmacAlgorithm:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 3
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 6: StackMap locals:
StackMap stack: java.security.InvalidKeyException
astore 3
start local 3 7: new javax.security.sasl.SaslException
dup
ldc "Could not initialize mac."
aload 3
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 8 1 bytes [B
0 8 2 key Ljava/lang/String;
1 4 3 mac Ljavax/crypto/Mac;
5 6 3 e Ljava/security/NoSuchAlgorithmException;
7 8 3 e Ljava/security/InvalidKeyException;
Exception table:
from to target type
0 3 4 Class java.security.NoSuchAlgorithmException
0 3 6 Class java.security.InvalidKeyException
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
bytes final
key final
private java.util.HashMap<java.lang.String, java.lang.String> parseServerResponse(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/HashMap;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 1: aload 1
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 2: aload 3
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 7
StackMap locals: com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient java.lang.String java.util.HashMap java.lang.String[] top int int java.lang.String[]
StackMap stack:
3: aload 7
iload 5
aaload
astore 4
start local 4 4: aload 4
ldc "="
iconst_2
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 8
start local 8 5: aload 2
aload 8
iconst_0
aaload
aload 8
iconst_1
aaload
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 8 end local 4 6: iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
iload 6
if_icmplt 3
8: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 9 1 response Ljava/lang/String;
1 9 2 map Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;
2 9 3 pairs [Ljava/lang/String;
4 6 4 pair Ljava/lang/String;
5 6 8 parts [Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
response final
private java.lang.String getUserName();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.credential:Lcom/mongodb/internal/connection/MongoCredentialWithCache;
invokevirtual com.mongodb.internal.connection.MongoCredentialWithCache.getCredential:()Lcom/mongodb/MongoCredential;
invokevirtual com.mongodb.MongoCredential.getUserName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "Username can not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
ldc "="
ldc "=3D"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
ldc ","
ldc "=2C"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
1 4 1 userName Ljava/lang/String;
private java.lang.String getAuthenicationHash();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.authenticationHashGenerator:Lcom/mongodb/internal/connection/ScramShaAuthenticator$AuthenticationHashGenerator;
aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.credential:Lcom/mongodb/internal/connection/MongoCredentialWithCache;
invokevirtual com.mongodb.internal.connection.MongoCredentialWithCache.getCredential:()Lcom/mongodb/MongoCredential;
invokeinterface com.mongodb.internal.connection.ScramShaAuthenticator$AuthenticationHashGenerator.generate:(Lcom/mongodb/MongoCredential;)Ljava/lang/String;
astore 1
start local 1 1: aload 0
getfield com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.credential:Lcom/mongodb/internal/connection/MongoCredentialWithCache;
invokevirtual com.mongodb.internal.connection.MongoCredentialWithCache.getAuthenticationMechanism:()Lcom/mongodb/AuthenticationMechanism;
getstatic com.mongodb.AuthenticationMechanism.SCRAM_SHA_256:Lcom/mongodb/AuthenticationMechanism;
if_acmpne 3
2: aload 1
invokestatic com.mongodb.internal.authentication.SaslPrep.saslPrepStored:(Ljava/lang/String;)Ljava/lang/String;
astore 1
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
1 4 1 password Ljava/lang/String;
private byte[] xorInPlace(byte[], byte[]);
descriptor: ([B[B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 1
iload 3
dup2
baload
aload 2
iload 3
baload
ixor
i2b
bastore
3: iinc 3 1
StackMap locals:
StackMap stack:
4: iload 3
aload 1
arraylength
if_icmplt 2
end local 3 5: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 6 1 a [B
0 6 2 b [B
1 5 3 i I
MethodParameters:
Name Flags
a final
b final
private byte[] xor(byte[], byte[]);
descriptor: ([B[B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
arraylength
newarray 8
astore 3
start local 3 1: aload 1
iconst_0
aload 3
iconst_0
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
aload 3
aload 2
invokevirtual com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient.xorInPlace:([B[B)[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/internal/connection/ScramShaAuthenticator$ScramShaSaslClient;
0 3 1 a [B
0 3 2 b [B
1 3 3 result [B
MethodParameters:
Name Flags
a final
b final
}
SourceFile: "ScramShaAuthenticator.java"
NestHost: com.mongodb.internal.connection.ScramShaAuthenticator
InnerClasses:
public abstract AuthenticationHashGenerator = com.mongodb.internal.connection.ScramShaAuthenticator$AuthenticationHashGenerator of com.mongodb.internal.connection.ScramShaAuthenticator
private CacheKey = com.mongodb.internal.connection.ScramShaAuthenticator$CacheKey of com.mongodb.internal.connection.ScramShaAuthenticator
private CacheValue = com.mongodb.internal.connection.ScramShaAuthenticator$CacheValue of com.mongodb.internal.connection.ScramShaAuthenticator
public abstract RandomStringGenerator = com.mongodb.internal.connection.ScramShaAuthenticator$RandomStringGenerator of com.mongodb.internal.connection.ScramShaAuthenticator
ScramShaSaslClient = com.mongodb.internal.connection.ScramShaAuthenticator$ScramShaSaslClient of com.mongodb.internal.connection.ScramShaAuthenticator