Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
Description
The Tutorial (http://docs.mongodb.org/ecosystem/tutorial/authenticate-with-java-driver/) shows MongoCredential created directly with new like
new MongoCredential("user1", "password1".toCharArray(), "first");
but the JavaDocs show MongoCredential as having no constructor preferring, I guess, the static methods like
public static MongoCredential createMongoCRCredential(String userName, String database, char[] password)
I hate it when the examples don't work.