Helper functions for instantiating various types of credentials.
(create username database pwd)
Creates a MongoCredential instance with an unspecified mechanism. The client will negotiate the best mechanism based on the version of the server that the client is authenticating to.
Creates a MongoCredential instance for the X509-based authentication protocol.