hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <mbe...@gmail.com>
Subject Re: Help with CredentialsProvider for Axis
Date Sun, 11 Dec 2005 20:31:42 GMT
Hi Robert,

It's up to the CredentialsProvider to handle multiple requests for the
same credentials.  You  will know that authentication has failed if
HttpClient asks for credentials for the same scheme/host/port more
than once.  By default HttpClient caches credentials in the associated
HttpState object (if authentication is successful) and will
automatically reuse them for future requests.


On 12/10/05, RB W <tomcat-bugs@hotmail.com> wrote:
> I am using the commons http client with Axis. I wrote my own
> CredentialsProvider to provide credentials for the Axis client by
> interactively requesting them from the user. This works fine, but has a
> significant problem. When asked a second time for credentials, my provider
> does not know whether the previous credentials worked or not, and therefore
> does not know whether to prompt the user for new credentials, or return the
> previous ones. Because I don't control the HttpClient, I don't know if the
> previous credentials worked or not.
> Is there any way of knowing if my previously provided credentials were valid
> or not? Can I implement some kind of factory so that I have access to the
> objects I need to know what is happening?
> Thanks in advance.
> Robert Wille
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar – get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
View raw message