code: public static CredentialsProvider newProxyCredentialsProvider
      (HttpClientSettings settings) {
          final CredentialsProvider provider = new BasicCredentialsProvider();
          provider.setCredentials(newAuthScope(settings), newNTCredentials(settings));
          return provider;
      }
docs: Returns a new Credentials Provider for use with proxy authentication.