monger.credentials

Helper functions for instantiating various types
of credentials.

create

(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.

x509

(x509 username)
Creates a MongoCredential instance for the X509-based authentication
protocol.