[FIXED Ensure the authenticator is created on load path also
@@ -134,7 +134,11 @@ public final class ProxyConfiguration extends AbstractDescribableImpl<ProxyConfi
this.secretPassword = Secret.fromString(password);
this.noProxyHost = Util.fixEmptyAndTrim(noProxyHost);
this.testUrl = Util.fixEmptyAndTrim(testUrl);
- authenticator = new Authenticator() {
+ authenticator = newAuthenticator();
+ }
+
+ private Authenticator newAuthenticator() {
+ return new Authenticator() {
@Override
public PasswordAuthentication getPasswordAuthentication() {
String userName = getUserName();
@@ -223,6 +227,7 @@ public final class ProxyConfiguration extends AbstractDescribableImpl<ProxyConfi
// backward compatibility : get scrambled password and store it encrypted
secretPassword = Secret.fromString(Scrambler.descramble(password));
password = null;
+ authenticator = newAuthenticator();
return this;
}
