add credentials support to mongodb java client