On Tue, Feb 11, 2014 at 9:58 AM, Oleg Kalnichevski <[email protected]> wrote:
> 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. > Enums would make the API easier to learn IMO. The String escape hatch can still be there for custom code. Gary > Oleg > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- E-Mail: [email protected] | [email protected] Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> Spring Batch in Action <http://www.manning.com/templier/> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
