On Tue, 2014-02-11 at 09:18 -0500, Gary Gregory wrote:
> On Tue, Feb 11, 2014 at 8:58 AM, Oleg Kalnichevski <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]