ui/src/main/java/ucar/nc2/ui/widget/UrlAuthenticatorDialog.java
protected PasswordAuthentication getPasswordAuthentication()
  {
    if (pwa == null) throw new IllegalStateException();

    if (debug) {
      System.out.println("site= " + getRequestingSite());
      System.out.println("port= " + getRequestingPort());
      System.out.println("protocol= " + getRequestingProtocol());
      System.out.println("prompt= " + getRequestingPrompt());
      System.out.println("scheme= " + getRequestingScheme());
    }

    serverF.setText(getRequestingHost()+":"+getRequestingPort());
    realmF.setText(getRequestingPrompt());
    dialog.setVisible( true);

     if (debug) {
      System.out.println("user= ("+pwa.getUserName()+")");
      System.out.println("password= ("+ pwa.getPassword() +")");
    }

    return new PasswordAuthentication(pwa.getUserName(), pwa.getPassword().toCharArray());
  }
protected PasswordAuthentication getPasswordAuthentication()
  {
    if (pwa == null) throw new IllegalStateException();

    if (debug) {
      System.out.println("site= " + getRequestingSite());
      System.out.println("port= " + getRequestingPort());
      System.out.println("protocol= " + getRequestingProtocol());
      System.out.println("prompt= " + getRequestingPrompt());
      System.out.println("scheme= " + getRequestingScheme());
    }

    serverF.setText(getRequestingHost()+":"+getRequestingPort());
    realmF.setText(getRequestingPrompt());
    dialog.setVisible( true);

     if (debug) {
      System.out.println("user= ("+pwa.getUserName()+")");
      System.out.println("password= ("+ pwa.getPassword() +")");
    }

    return new PasswordAuthentication(pwa.getUserName(), pwa.getPassword().toCharArray());
  }
protected PasswordAuthentication getPasswordAuthentication ( ) { if ( pwa == null ) throw new IllegalStateException ( ) ; if ( debug ) { System . out . println ( "site= " + getRequestingSite ( ) ) ; System . out . println ( "port= " + getRequestingPort ( ) ) ; System . out . println ( "protocol= " + getRequestingProtocol ( ) ) ; System . out . println ( "prompt= " + getRequestingPrompt ( ) ) ; System . out . println ( "scheme= " + getRequestingScheme ( ) ) ; } serverF . setText ( getRequestingHost ( ) + ":" + getRequestingPort ( ) ) ; realmF . setText ( getRequestingPrompt ( ) ) ; dialog . setVisible ( true ) ; if ( debug ) { System . out . println ( "user= (" + pwa . getUserName ( ) + ")" ) ; System . out . println ( "password= (" + pwa . getPassword ( ) + ")" ) ; } return new PasswordAuthentication ( pwa . getUserName ( ) , pwa . getPassword ( ) . toCharArray ( ) ) ; }
java.net calls this:
java . net calls this :