code: public static void addPasswordFieldToString(final StringBuffer buffer,
              final String name, final Object value) {
  
          addFieldToString(buffer, name, (value == null) ? null : "*****");
  
      }
docs: Adds a string representation of the given password to the buffer. This
  will contain a row of asterisks if the password is non-null.
  
  @param buffer
  the buffer
  @param name
  the name of the field
  @param value
  the value of the field