String encodedPassword(){
  if (password.isEmpty())   return "";
  int passwordStart=url.indexOf(':',scheme.length() + 3) + 1;
  int passwordEnd=url.indexOf('@');
  return url.substring(passwordStart,passwordEnd);
}

String encodedPassword ( ) { if ( password . isEmpty ( ) ) return "" ; int passwordStart = url . indexOf ( ':' , scheme . length ( ) + 3 ) + 1 ; int passwordEnd = url . indexOf ( '@' ) ; return url . substring ( passwordStart , passwordEnd ) ; }
returns the password , or an empty string if none is set .
