PasswordAuthentication (@NotNull String host, int port) { ProxyInfo proxyInfo; synchronized (myLock) { if (myGenericPasswords.isEmpty()) { return null; } proxyInfo = myGenericPasswords.get(new CommonProxy.HostInfo(null, host, port)); } if (proxyInfo == null) { return null; } return new PasswordAuthentication(proxyInfo.getUsername(), decode(String.valueOf(proxyInfo.getPasswordCrypt())).toCharArray()); }