Пример #1
0
 public String toString() {
   boolean hasUser = (this.get("user") != null);
   boolean hasPassword = (this.get("password") != null);
   if (hasUser || hasPassword) {
     AuthMaskingProperties clone = (AuthMaskingProperties) this.clone();
     if (hasUser) clone.put("user", "******");
     if (hasPassword) clone.put("password", "******");
     return clone.normalToString();
   } else return this.normalToString();
 }