public static MongoCredential createScramSha256Credential ( final String userName , final String source , final char [ ] password ) { return new MongoCredential ( SCRAM_SHA_256 , userName , source , password ) ; }
Creates a MongoCredential instance for the SCRAM - SHA - 256 SASL mechanism .