-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 3.0.2
-
Component/s: Documentation
-
None
public static MongoCredential createScramSha1Credential(String userName,
String source,
char[] password)
Creates a MongoCredential instance for the SCRAM-SHA-1 SASL mechanism. Use this method only if you want to ensure that the driver uses the MONGODB_CR mechanism regardless of whether the server you are connecting to supports a more secure authentication mechanism. Otherwise use the createCredential(String, String, char[]) method to allow the driver to negotiate the best mechanism based on the server version.
In the above, MONGODB_CR should be replaced by SCRAM-SHA-1 SASL.