code: public String encodedPassword() {
          if (password.isEmpty()) return "";
          int passwordStart = url.indexOf(':', scheme.length() + 3) + 1;
          int passwordEnd = url.indexOf('@');
          return url.substring(passwordStart, passwordEnd);
      }
docs: Returns the password, or an empty string if none is set.
  
  <p><table summary="">
  <tr><th>URL</th><th>{@code encodedPassword()}</th></tr>
  <tr><td>{@code http://host/}</td><td>{@code ""}</td></tr>
  <tr><td>{@code http://username@host/}</td><td>{@code ""}</td></tr>
  <tr><td>{@code http://username:password@host/}</td><td>{@code "password"}</td></tr>
  <tr><td>{@code http://a%20b:c%20d@host/}</td><td>{@code "c%20d"}</td></tr>
  </table>