Is it possible to make something like :
MongoClient mongo = new MongoClient(ip, port, usrName, password)
in JAVA similar to the MongoVUE or other SQL based databases' authentication method.
There the authentication is done during connection to DB instance.
I don't see an appropriate instance method in MongoClient java doc
And the way in Authentication (Optional) Official docs
doesn't fit my goals, because it requires to change all the existing query methods in my application which don't use authentication now.
The way in Authenticate to MongoDB with the Java Driver looks exactly what i need, but there's no com.mongodb.MongoCredential class in mongo 2.10.1 distribution.