@Nullable
  protected PasswordAuthentication findProxyPasswordAuthentication (@Nullable final String sRequestingHost,
                                                                    @Nullable final InetAddress aRequestingSite,
                                                                    final int nRequestingPort,
                                                                    @Nonnull final String sRequestingProtocol,
                                                                    @Nullable final String sRequestingPrompt,
                                                                    @Nonnull final String sRequestingScheme,
                                                                    @Nullable final URL aRequestingURL)
  {
    final ICommonsOrderedSet <IProxySettings> aMatching = ProxySettingsManager.findAllProxySettings (sRequestingProtocol,
                                                                                                     sRequestingHost,
                                                                                                     nRequestingPort);
    for (final IProxySettings aProxySettings : aMatching)
    {
      // Not every proxy settings contains a PA
      final PasswordAuthentication aPA = aProxySettings.getAsPasswordAuthentication ();
      if (aPA != null)
        return aPA;
    }
    return null;
  }
@ Nullable protected PasswordAuthentication findProxyPasswordAuthentication ( @ Nullable final String sRequestingHost , @ Nullable final InetAddress aRequestingSite , final int nRequestingPort , @ Nonnull final String sRequestingProtocol , @ Nullable final String sRequestingPrompt , @ Nonnull final String sRequestingScheme , @ Nullable final URL aRequestingURL ) { final ICommonsOrderedSet < IProxySettings > aMatching = ProxySettingsManager . findAllProxySettings ( sRequestingProtocol , sRequestingHost , nRequestingPort ) ; for ( final IProxySettings aProxySettings : aMatching ) { final PasswordAuthentication aPA = aProxySettings . getAsPasswordAuthentication ( ) ; if ( aPA != null ) return aPA ; } return null ; }
@param sRequestingHost
Requesting host. May be <code>null</code>.
@param aRequestingSite
Requesting site. May be <code>null</code>.
@param nRequestingPort
Requesting port. May be &le; 0.
@param sRequestingProtocol
Requesting protocol. May be <code>null</code>.
@param sRequestingPrompt
User query to show. May be <code>null</code>.
@param sRequestingScheme
Authentication scheme to use. May be <code>null</code>.
@param aRequestingURL
The full requesting URL. May be <code>null</code>.
@return