The Stream instance was getting too many arguments. I passed it a BasicA...

...uthHandler instance instead of the username and password individually, and it worked!  (I am running version 1.8)