Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F8EC1083E for ; Tue, 11 Feb 2014 14:58:55 +0000 (UTC) Received: (qmail 21515 invoked by uid 500); 11 Feb 2014 14:58:54 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 21278 invoked by uid 500); 11 Feb 2014 14:58:50 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 21252 invoked by uid 99); 11 Feb 2014 14:58:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Feb 2014 14:58:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Feb 2014 14:58:42 +0000 Received: from [192.168.42.63] (unknown [213.55.184.197]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id E2BE8B8007C for ; Tue, 11 Feb 2014 15:58:17 +0100 (CET) Message-ID: <1392130695.6000.11.camel@ubuntu> Subject: Re: Using basic auth produces warnings about NTLM and NEGOTIATE errors. From: Oleg Kalnichevski To: HttpClient User Discussion Date: Tue, 11 Feb 2014 15:58:15 +0100 In-Reply-To: References: <1392127127.6000.5.camel@ubuntu> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2014-02-11 at 09:18 -0500, Gary Gregory wrote: > On Tue, Feb 11, 2014 at 8:58 AM, Oleg Kalnichevski wrote: ... > > --- > > RequestConfig config = RequestConfig.custom() > > .setTargetPreferredAuthSchemes(Arrays.asList("BASIC")) > > > > Wouldn't an enum be more helpful here? > > Otherwise, I have to do more digging to find other strings are allowed. > > Gary > Authentication schemes are pluggable. We cannot limit auth scheme names to a fixed set but be could have an overloaded method that accepts enum values representing standard schemes. I am not sure it is worth the trouble but it is doable. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org