Removed deprecated setError
Introduced property assignment on constructor and removed JObject dependency
Partial revert of commit e5a179e and renamed method to setPassword