On Wed, 2006-03-01 at 14:05 +0100, Olaf Sebelin wrote:
> Oleg Kalnichevski <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to