in src/main/java/com/microsoft/azure/proton/transport/proxy/impl/BasicProxyChallengeProcessorImpl.java [38:54]
public Map<String, String> getHeader() {
PasswordAuthentication passwordAuthentication =
proxyAuthenticator.getPasswordAuthentication(Constants.BASIC_LOWERCASE, host);
if (!ProxyAuthenticator.isPasswordAuthenticationHasValues(passwordAuthentication)) {
return null;
}
final String proxyUserName = passwordAuthentication.getUserName();
final String proxyPassword = new String(passwordAuthentication.getPassword());
final String usernamePasswordPair = String.join(":", proxyUserName, proxyPassword);
headers.put(
Constants.PROXY_AUTHORIZATION,
String.join(" ", Constants.BASIC, Base64.getEncoder().encodeToString(usernamePasswordPair.getBytes(UTF_8))));
return headers;
}