Adding toString method
@@ -51,4 +51,9 @@ public void setPassword( char[] password )
{
this.password = password;
}
+
+ @Override
+ public String toString() {
+ return "name="+username+",pwd=*****";
+ }
}
