I'd like to write an extension to manage cached HTTP passwords. I've come up with two approaches: 1. Use the history to get a list of locations that might have cached passwords. 2. Simply get a list of cached passwords Neither of these are possible with the current
The only interface available via XPCOM (and therefore to extensions) is nsIHttpAuthManager. If you glance at it, you’ll see that the methods let you: * Get one username, password, and domain * Store one username, password, and domain * Remove everything nsHttpAuthCache has a method, ClearAuthEntry, to let you remove a single entry. Option one (that uses the history) would just need to expose this via the interface. An alternative might be clearing the entry if SetAuthIdentity is called with an empty username and password (are there systems that require authentication, but use an empty username and password?) I could add a way to list entries (option two) but doing so requires returning an 2d array of string search results or exposing a variant of nsHttpAuthEntry and returning an array of those. _______________________________________________ Mozilla-netlib mailing list Mozilla-netlib@mozilla.org http://mail.mozilla.org/listinfo/mozilla-netlib