driver-core/src/main/com/mongodb/MongoCredential.java
public static MongoCredential createScramSha1Credential(final String userName, final String source, final char[] password) {
        return new MongoCredential(SCRAM_SHA_1, userName, source, password);
    }
public static MongoCredential createScramSha1Credential(final String userName, final String source, final char[] password) {
        return new MongoCredential(SCRAM_SHA_1, userName, source, 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 SCRAM-SHA-1 mechanism regardless of whether the server you are connecting to supports the
authentication mechanism.  Otherwise use the {@link #createCredential(String, String, char[])} method to allow the driver to
negotiate the best mechanism based on the server version.


@param userName the non-null user name
@param source the source where the user is defined.
@param password the non-null user password
@return the credential
@see #createCredential(String, String, char[])

@since 2.13
@mongodb.server.release 3.0
@mongodb.driver.manual core/authentication/#authentication-scram-sha-1 SCRAM-SHA-1