public static MongoCredential createPlainCredential ( final String userName , final String source , final char [ ] password ) { return new MongoCredential ( PLAIN , userName , source , password ) ; }
Creates a MongoCredential instance for the PLAIN SASL mechanism .