It is currently not possible to enable preemptive authentication for multiple HTTP or multiple HTTPS ports. There is com.github.sardine.impl.SardineImpl.enablePreemptiveAuthentication(String, int, int) (#181), but if that's called multiple times, the old AuthCache is cleared. The method should check if there is already an AuthCache present and extend it in that case.
Unfortunately, I cannot override the method and add that behavior because I'd need to access com.github.sardine.impl.SardineImpl.context which is private.
It is currently not possible to enable preemptive authentication for multiple HTTP or multiple HTTPS ports. There is
com.github.sardine.impl.SardineImpl.enablePreemptiveAuthentication(String, int, int)
(#181), but if that's called multiple times, the oldAuthCache
is cleared. The method should check if there is already anAuthCache
present and extend it in that case. Unfortunately, I cannot override the method and add that behavior because I'd need to accesscom.github.sardine.impl.SardineImpl.context
which is private.