hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Using basic auth produces warnings about NTLM and NEGOTIATE errors.
Date Tue, 11 Feb 2014 14:58:15 GMT
On Tue, 2014-02-11 at 09:18 -0500, Gary Gregory wrote:
> On Tue, Feb 11, 2014 at 8:58 AM, Oleg Kalnichevski <olegk@apache.org> 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


Mime
View raw message