public final class com.mongodb.MongoCredential
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.MongoCredential
super_class: java.lang.Object
{
private final com.mongodb.AuthenticationMechanism mechanism;
descriptor: Lcom/mongodb/AuthenticationMechanism;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String userName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String source;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final char[] password;
descriptor: [C
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.Object> mechanismProperties;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
public static final java.lang.String MONGODB_CR_MECHANISM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static final java.lang.String GSSAPI_MECHANISM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String PLAIN_MECHANISM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String MONGODB_X509_MECHANISM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String SCRAM_SHA_1_MECHANISM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String SCRAM_SHA_256_MECHANISM;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.lang.String SERVICE_NAME_KEY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "SERVICE_NAME"
public static final java.lang.String CANONICALIZE_HOST_NAME_KEY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "CANONICALIZE_HOST_NAME"
public static final java.lang.String JAVA_SASL_CLIENT_PROPERTIES_KEY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "JAVA_SASL_CLIENT_PROPERTIES"
public static final java.lang.String JAVA_SUBJECT_KEY;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "JAVA_SUBJECT"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.mongodb.AuthenticationMechanism.MONGODB_CR:Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.getMechanismName:()Ljava/lang/String;
putstatic com.mongodb.MongoCredential.MONGODB_CR_MECHANISM:Ljava/lang/String;
1: getstatic com.mongodb.AuthenticationMechanism.GSSAPI:Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.getMechanismName:()Ljava/lang/String;
putstatic com.mongodb.MongoCredential.GSSAPI_MECHANISM:Ljava/lang/String;
2: getstatic com.mongodb.AuthenticationMechanism.PLAIN:Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.getMechanismName:()Ljava/lang/String;
putstatic com.mongodb.MongoCredential.PLAIN_MECHANISM:Ljava/lang/String;
3: getstatic com.mongodb.AuthenticationMechanism.MONGODB_X509:Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.getMechanismName:()Ljava/lang/String;
putstatic com.mongodb.MongoCredential.MONGODB_X509_MECHANISM:Ljava/lang/String;
4: getstatic com.mongodb.AuthenticationMechanism.SCRAM_SHA_1:Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.getMechanismName:()Ljava/lang/String;
putstatic com.mongodb.MongoCredential.SCRAM_SHA_1_MECHANISM:Ljava/lang/String;
5: getstatic com.mongodb.AuthenticationMechanism.SCRAM_SHA_256:Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.getMechanismName:()Ljava/lang/String;
putstatic com.mongodb.MongoCredential.SCRAM_SHA_256_MECHANISM:Ljava/lang/String;
6: return
LocalVariableTable:
Start End Slot Name Signature
public static com.mongodb.MongoCredential createCredential(java.lang.String, java.lang.String, char[]);
descriptor: (Ljava/lang/String;Ljava/lang/String;[C)Lcom/mongodb/MongoCredential;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.MongoCredential
dup
aconst_null
aload 0
aload 1
aload 2
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[C)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 userName Ljava/lang/String;
0 1 1 database Ljava/lang/String;
0 1 2 password [C
MethodParameters:
Name Flags
userName final
database final
password final
public static com.mongodb.MongoCredential createScramSha1Credential(java.lang.String, java.lang.String, char[]);
descriptor: (Ljava/lang/String;Ljava/lang/String;[C)Lcom/mongodb/MongoCredential;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.MongoCredential
dup
getstatic com.mongodb.AuthenticationMechanism.SCRAM_SHA_1:Lcom/mongodb/AuthenticationMechanism;
aload 0
aload 1
aload 2
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[C)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 userName Ljava/lang/String;
0 1 1 source Ljava/lang/String;
0 1 2 password [C
MethodParameters:
Name Flags
userName final
source final
password final
public static com.mongodb.MongoCredential createScramSha256Credential(java.lang.String, java.lang.String, char[]);
descriptor: (Ljava/lang/String;Ljava/lang/String;[C)Lcom/mongodb/MongoCredential;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.MongoCredential
dup
getstatic com.mongodb.AuthenticationMechanism.SCRAM_SHA_256:Lcom/mongodb/AuthenticationMechanism;
aload 0
aload 1
aload 2
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[C)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 userName Ljava/lang/String;
0 1 1 source Ljava/lang/String;
0 1 2 password [C
MethodParameters:
Name Flags
userName final
source final
password final
public static com.mongodb.MongoCredential createMongoCRCredential(java.lang.String, java.lang.String, char[]);
descriptor: (Ljava/lang/String;Ljava/lang/String;[C)Lcom/mongodb/MongoCredential;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.MongoCredential
dup
getstatic com.mongodb.AuthenticationMechanism.MONGODB_CR:Lcom/mongodb/AuthenticationMechanism;
aload 0
aload 1
aload 2
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[C)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 userName Ljava/lang/String;
0 1 1 database Ljava/lang/String;
0 1 2 password [C
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
userName final
database final
password final
public static com.mongodb.MongoCredential createMongoX509Credential(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/mongodb/MongoCredential;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new com.mongodb.MongoCredential
dup
getstatic com.mongodb.AuthenticationMechanism.MONGODB_X509:Lcom/mongodb/AuthenticationMechanism;
aload 0
ldc "$external"
aconst_null
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[C)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 userName Ljava/lang/String;
MethodParameters:
Name Flags
userName final
public static com.mongodb.MongoCredential createMongoX509Credential();
descriptor: ()Lcom/mongodb/MongoCredential;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new com.mongodb.MongoCredential
dup
getstatic com.mongodb.AuthenticationMechanism.MONGODB_X509:Lcom/mongodb/AuthenticationMechanism;
aconst_null
ldc "$external"
aconst_null
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[C)V
areturn
LocalVariableTable:
Start End Slot Name Signature
public static com.mongodb.MongoCredential createPlainCredential(java.lang.String, java.lang.String, char[]);
descriptor: (Ljava/lang/String;Ljava/lang/String;[C)Lcom/mongodb/MongoCredential;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.MongoCredential
dup
getstatic com.mongodb.AuthenticationMechanism.PLAIN:Lcom/mongodb/AuthenticationMechanism;
aload 0
aload 1
aload 2
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[C)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 userName Ljava/lang/String;
0 1 1 source Ljava/lang/String;
0 1 2 password [C
MethodParameters:
Name Flags
userName final
source final
password final
public static com.mongodb.MongoCredential createGSSAPICredential(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/mongodb/MongoCredential;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new com.mongodb.MongoCredential
dup
getstatic com.mongodb.AuthenticationMechanism.GSSAPI:Lcom/mongodb/AuthenticationMechanism;
aload 0
ldc "$external"
aconst_null
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[C)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 userName Ljava/lang/String;
MethodParameters:
Name Flags
userName final
public <T> com.mongodb.MongoCredential withMechanismProperty(java.lang.String, T);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)Lcom/mongodb/MongoCredential;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new com.mongodb.MongoCredential
dup
aload 0
aload 1
aload 2
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/MongoCredential;Ljava/lang/String;Ljava/lang/Object;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/MongoCredential;
0 1 1 key Ljava/lang/String;
0 1 2 value TT;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/String;TT;)Lcom/mongodb/MongoCredential;
MethodParameters:
Name Flags
key final
value final
public com.mongodb.MongoCredential withMechanism(com.mongodb.AuthenticationMechanism);
descriptor: (Lcom/mongodb/AuthenticationMechanism;)Lcom/mongodb/MongoCredential;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
ifnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Mechanism already set"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new com.mongodb.MongoCredential
dup
aload 1
aload 0
getfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
aload 0
getfield com.mongodb.MongoCredential.source:Ljava/lang/String;
aload 0
getfield com.mongodb.MongoCredential.password:[C
aload 0
getfield com.mongodb.MongoCredential.mechanismProperties:Ljava/util/Map;
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[CLjava/util/Map;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/MongoCredential;
0 3 1 mechanism Lcom/mongodb/AuthenticationMechanism;
MethodParameters:
Name Flags
mechanism final
void <init>(com.mongodb.AuthenticationMechanism, java.lang.String, java.lang.String, char[]);
descriptor: (Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[C)V
flags: (0x0000)
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
aload 4
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
invokespecial com.mongodb.MongoCredential.<init>:(Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[CLjava/util/Map;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/MongoCredential;
0 2 1 mechanism Lcom/mongodb/AuthenticationMechanism;
0 2 2 userName Ljava/lang/String;
0 2 3 source Ljava/lang/String;
0 2 4 password [C
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
com.mongodb.lang.Nullable()
2:
3:
com.mongodb.lang.Nullable()
MethodParameters:
Name Flags
mechanism final
userName final
source final
password final
void <init>(com.mongodb.AuthenticationMechanism, java.lang.String, java.lang.String, char[], java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[CLjava/util/Map;)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
getstatic com.mongodb.AuthenticationMechanism.MONGODB_X509:Lcom/mongodb/AuthenticationMechanism;
if_acmpeq 3
aload 2
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: com.mongodb.MongoCredential com.mongodb.AuthenticationMechanism java.lang.String java.lang.String char[] java.util.Map
StackMap stack:
aload 1
ifnonnull 5
aload 4
ifnonnull 5
4: new java.lang.IllegalArgumentException
dup
ldc "Password can not be null when the authentication mechanism is unspecified"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.mongodb.MongoCredential.mechanismRequiresPassword:(Lcom/mongodb/AuthenticationMechanism;)Z
ifeq 7
aload 4
ifnonnull 7
6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Password can not be null for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " mechanism"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
getstatic com.mongodb.AuthenticationMechanism.GSSAPI:Lcom/mongodb/AuthenticationMechanism;
if_acmpeq 8
aload 1
getstatic com.mongodb.AuthenticationMechanism.MONGODB_X509:Lcom/mongodb/AuthenticationMechanism;
if_acmpne 10
StackMap locals:
StackMap stack:
8: aload 4
ifnull 10
9: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Password must be null for the "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " mechanism"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
11: aload 0
aload 2
putfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
12: aload 0
ldc "source"
aload 3
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield com.mongodb.MongoCredential.source:Ljava/lang/String;
13: aload 0
aload 4
ifnull 14
aload 4
invokevirtual char[].clone:()Ljava/lang/Object;
checkcast char[]
goto 15
StackMap locals:
StackMap stack: com.mongodb.MongoCredential
14: aconst_null
StackMap locals: com.mongodb.MongoCredential com.mongodb.AuthenticationMechanism java.lang.String java.lang.String char[] java.util.Map
StackMap stack: com.mongodb.MongoCredential char[]
15: putfield com.mongodb.MongoCredential.password:[C
16: aload 0
new java.util.HashMap
dup
aload 5
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
putfield com.mongodb.MongoCredential.mechanismProperties:Ljava/util/Map;
17: return
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 18 0 this Lcom/mongodb/MongoCredential;
0 18 1 mechanism Lcom/mongodb/AuthenticationMechanism;
0 18 2 userName Ljava/lang/String;
0 18 3 source Ljava/lang/String;
0 18 4 password [C
0 18 5 mechanismProperties Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
Signature: (Lcom/mongodb/AuthenticationMechanism;Ljava/lang/String;Ljava/lang/String;[CLjava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)V
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
1:
com.mongodb.lang.Nullable()
2:
3:
com.mongodb.lang.Nullable()
4:
MethodParameters:
Name Flags
mechanism final
userName final
source final
password final
mechanismProperties final
private boolean mechanismRequiresPassword(com.mongodb.AuthenticationMechanism);
descriptor: (Lcom/mongodb/AuthenticationMechanism;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic com.mongodb.AuthenticationMechanism.PLAIN:Lcom/mongodb/AuthenticationMechanism;
if_acmpeq 1
aload 1
getstatic com.mongodb.AuthenticationMechanism.MONGODB_CR:Lcom/mongodb/AuthenticationMechanism;
if_acmpeq 1
aload 1
getstatic com.mongodb.AuthenticationMechanism.SCRAM_SHA_1:Lcom/mongodb/AuthenticationMechanism;
if_acmpeq 1
aload 1
getstatic com.mongodb.AuthenticationMechanism.SCRAM_SHA_256:Lcom/mongodb/AuthenticationMechanism;
if_acmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/MongoCredential;
0 2 1 mechanism Lcom/mongodb/AuthenticationMechanism;
RuntimeVisibleParameterAnnotations:
0:
com.mongodb.lang.Nullable()
MethodParameters:
Name Flags
mechanism final
<T> void <init>(com.mongodb.MongoCredential, java.lang.String, );
descriptor: (Lcom/mongodb/MongoCredential;Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: ldc "mechanismPropertyKey"
aload 2
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
getfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
putfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
3: aload 0
aload 1
getfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
putfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
4: aload 0
aload 1
getfield com.mongodb.MongoCredential.source:Ljava/lang/String;
putfield com.mongodb.MongoCredential.source:Ljava/lang/String;
5: aload 0
aload 1
getfield com.mongodb.MongoCredential.password:[C
putfield com.mongodb.MongoCredential.password:[C
6: aload 0
new java.util.HashMap
dup
aload 1
getfield com.mongodb.MongoCredential.mechanismProperties:Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
putfield com.mongodb.MongoCredential.mechanismProperties:Ljava/util/Map;
7: aload 0
getfield com.mongodb.MongoCredential.mechanismProperties:Ljava/util/Map;
aload 2
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/mongodb/MongoCredential;
0 9 1 from Lcom/mongodb/MongoCredential;
0 9 2 mechanismPropertyKey Ljava/lang/String;
0 9 3 mechanismPropertyValue TT;
Signature: <T:Ljava/lang/Object;>(Lcom/mongodb/MongoCredential;Ljava/lang/String;TT;)V
MethodParameters:
Name Flags
from final
mechanismPropertyKey final
mechanismPropertyValue final
public java.lang.String getMechanism();
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.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.getMechanismName:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/MongoCredential;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public com.mongodb.AuthenticationMechanism getAuthenticationMechanism();
descriptor: ()Lcom/mongodb/AuthenticationMechanism;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/MongoCredential;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public java.lang.String getUserName();
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.MongoCredential.userName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/MongoCredential;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public java.lang.String getSource();
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.MongoCredential.source:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/MongoCredential;
public char[] getPassword();
descriptor: ()[C
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.mongodb.MongoCredential.password:[C
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.MongoCredential.password:[C
invokevirtual char[].clone:()Ljava/lang/Object;
checkcast char[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/mongodb/MongoCredential;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
public <T> T getMechanismProperty(java.lang.String, );
descriptor: (Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: ldc "key"
aload 1
invokestatic com.mongodb.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.mongodb.MongoCredential.mechanismProperties:Ljava/util/Map;
aload 1
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
start local 3 2: aload 3
ifnonnull 3
aload 2
goto 4
StackMap locals: java.lang.Object
StackMap stack:
3: aload 3
StackMap locals:
StackMap stack: java.lang.Object
4: 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/MongoCredential;
0 5 1 key Ljava/lang/String;
0 5 2 defaultValue TT;
2 5 3 value TT;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/String;TT;)TT;
RuntimeVisibleAnnotations:
com.mongodb.lang.Nullable()
RuntimeVisibleParameterAnnotations:
0:
1:
com.mongodb.lang.Nullable()
MethodParameters:
Name Flags
key final
defaultValue final
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast com.mongodb.MongoCredential
astore 2
start local 2 5: aload 0
getfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
aload 2
getfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
if_acmpeq 7
6: iconst_0
ireturn
7: StackMap locals: com.mongodb.MongoCredential
StackMap stack:
aload 0
getfield com.mongodb.MongoCredential.password:[C
aload 2
getfield com.mongodb.MongoCredential.password:[C
invokestatic java.util.Arrays.equals:([C[C)Z
ifne 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.MongoCredential.source:Ljava/lang/String;
aload 2
getfield com.mongodb.MongoCredential.source:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
ifnull 12
aload 0
getfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
aload 2
getfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 14
goto 13
StackMap locals:
StackMap stack:
12: aload 2
getfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
ifnull 14
13: StackMap locals:
StackMap stack:
iconst_0
ireturn
14: StackMap locals:
StackMap stack:
aload 0
getfield com.mongodb.MongoCredential.mechanismProperties:Ljava/util/Map;
aload 2
getfield com.mongodb.MongoCredential.mechanismProperties:Ljava/util/Map;
invokeinterface java.util.Map.equals:(Ljava/lang/Object;)Z
ifne 16
15: iconst_0
ireturn
16: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/mongodb/MongoCredential;
0 17 1 o Ljava/lang/Object;
5 17 2 that Lcom/mongodb/MongoCredential;
MethodParameters:
Name Flags
o final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
ifnull 1
aload 0
getfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
invokevirtual com.mongodb.AuthenticationMechanism.hashCode:()I
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 1
start local 1 3: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
ifnull 4
aload 0
getfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
goto 5
StackMap locals: com.mongodb.MongoCredential int
StackMap stack: int
4: iconst_0
StackMap locals: com.mongodb.MongoCredential int
StackMap stack: int int
5: iadd
istore 1
6: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.MongoCredential.source:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
iadd
istore 1
7: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.MongoCredential.password:[C
ifnull 8
aload 0
getfield com.mongodb.MongoCredential.password:[C
invokestatic java.util.Arrays.hashCode:([C)I
goto 9
StackMap locals:
StackMap stack: int
8: iconst_0
StackMap locals: com.mongodb.MongoCredential int
StackMap stack: int int
9: iadd
istore 1
10: bipush 31
iload 1
imul
aload 0
getfield com.mongodb.MongoCredential.mechanismProperties:Ljava/util/Map;
invokeinterface java.util.Map.hashCode:()I
iadd
istore 1
11: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/mongodb/MongoCredential;
3 12 1 result I
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "MongoCredential{mechanism="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield com.mongodb.MongoCredential.mechanism:Lcom/mongodb/AuthenticationMechanism;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: ldc ", userName='"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.mongodb.MongoCredential.userName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 39
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
3: ldc ", source='"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.mongodb.MongoCredential.source:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 39
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
4: ldc ", password=<hidden>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc ", mechanismProperties=<hidden>"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
7: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/mongodb/MongoCredential;
}
SourceFile: "MongoCredential.java"
RuntimeVisibleAnnotations:
com.mongodb.annotations.Immutable()