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: CONNECT over SSL with HttpClient 3.0
Date Wed, 01 Mar 2006 13:09:38 GMT
On Wed, 2006-03-01 at 14:05 +0100, Olaf Sebelin wrote:
> Oleg Kalnichevski <olegk@apache.org> schrieb am 01.03.2006 um 12:45:
> 
> [...]
> > Olaf,
> > 
> > If the user simply aborts the dialog, the credentials provider is
> > supposed to return null instead of throwing an exception. 
> > 
> 
> Ok, thank you. But what is the difference between returning null and
> throwing a CredentialsNotAvailableException from the point of view of
> the CredentialsProvider? 
> 

Returning Null signals the normal termination of the re-authentication
loop, whereas the CredentialsNotAvailableException exception signals
some sort of abnormal situation.

I am not at all happy with the CredentialsProvider interface and intend
to completely revamp it for the 4.0 release, but at the moment this is
what we are stuck with

Oleg


> 
> > Moreover, HttpClient makes no provisions to check whether the same
> > credentials have been tried already. It is a responsibility of the
> > custom credentials provider to keep track of authentication attempts
> > and to ensure that credentials known to be invalid are not retried.
> > 
> > 
> > > --- Wire Log follows (with hostnames anonymized) ---
> > > 
> > 
> > This is clearly a bug in HttpClient. Please file a bug report in
> > Bugzilla
> 
> Done: http://issues.apache.org/bugzilla/show_bug.cgi?id=38818
> 
> 
> Regards,
> Olaf
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message