Oleg Kalnichevski wrote:
On Thu, 2014-01-16 at 13:21 -0700, Dennis Heimbigner wrote:
As I understand it, in httpclient 4,
each credentials provider is solely responsible
for caching of credentials.


Actually it is AuthCache [1].

That does not seem correct to me. I looked
at AuthCache (BasicAuthCache actually) and it never
even references a credentials provider. It is
caching a map of HttpHost->AuthScheme.

So I looked ocurrences of AuthProtocolState.FAILURE
and while the AuthCache is invalidated, nowhere that I
can find is any corresponding credentials provider
be notified.

What am I missing?





The question I have is: when authentication
fails using a set of credentials provided
by a credentials provider (say because they are out of date),
how is the credentials provider notified that those credentials
should be purged from the cache?


This is done by the default AuthenticationStrategy implementations [2].

Hope this helps

Oleg

[1]
http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/client/AuthCache.html
[2]
http://hc.apache.org/httpcomponents-client-4.3.x/httpclient/xref/org/apache/http/impl/client/AuthenticationStrategyImpl.html#229



---------------------------------------------------------------------
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