commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Gl├╝ck <ortwin.glu...@nose.ch>
Subject Re: [HttpClient] Method to determine required credential type
Date Thu, 26 Sep 2002 07:25:47 GMT
Adrian Sutton wrote:
> No authentication required (because a request hasn't yet been made or
> because there was no 401 response): return null.
> 
> Basic or Digest: return UsernamePasswordCredentials.class
> 
> NTLM authentication: return NTCredentials.class
> 
> Unsupported authentication scheme: null

I'd rather throw an Exception if the scheme is not supported. Otherwise 
there is no way of distinguishing "Unsupported auth" and "No auth required".


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message