protected PasswordAuthentication getPasswordAuthentication() {
        // Don't worry, this is just a hack to figure out if we were able
        // to set this Authenticator through the setDefault method.
        if (!sInitialized && MAGIC.equals(getRequestingScheme()) && getRequestingPort() == FOURTYTWO) {
            return new PasswordAuthentication(MAGIC, ("" + FOURTYTWO).toCharArray());
        }
        /*
         System.err.println("getPasswordAuthentication");
         System.err.println(getRequestingSite());
         System.err.println(getRequestingPort());
         System.err.println(getRequestingProtocol());
         System.err.println(getRequestingPrompt());
         System.err.println(getRequestingScheme());
         */

        // TODO:
        // Look for a more specific PasswordAuthenticatior before using
        // Default:
        //
        // if (...)
        //    return pa.requestPasswordAuthentication(getRequestingSite(),
        //    	                                      getRequestingPort(),
        //                                            getRequestingProtocol(),
        //                                            getRequestingPrompt(),
        //                                    	      getRequestingScheme());

        return passwordAuthentications.get(new AuthKey(getRequestingSite(),
                getRequestingPort(),
                getRequestingProtocol(),
                getRequestingPrompt(),
                getRequestingScheme()));
    }
protected PasswordAuthentication getPasswordAuthentication ( ) { if ( ! sInitialized && MAGIC . equals ( getRequestingScheme ( ) ) && getRequestingPort ( ) == FOURTYTWO ) { return new PasswordAuthentication ( MAGIC , ( "" + FOURTYTWO ) . toCharArray ( ) ) ; } return passwordAuthentications . get ( new AuthKey ( getRequestingSite ( ) , getRequestingPort ( ) , getRequestingProtocol ( ) , getRequestingPrompt ( ) , getRequestingScheme ( ) ) ) ; }
Gets the PasswordAuthentication for the request. Called when password
authorization is needed.

@return The PasswordAuthentication collected from the user, or null if
none is provided.