public < T > MongoCredential withMechanismProperty ( final String key , final T value ) { return new MongoCredential ( this , key , value ) ; }
Creates a new MongoCredential as a copy of this instance with the specified mechanism property added .