in src/main/java/com/microsoft/azure/proton/transport/proxy/impl/ProxyImpl.java [484:496]
private ProxyChallengeProcessor getChallengeProcessor(String host, List<String> challenges,
Set<ProxyAuthenticationType> authentication) {
final ProxyAuthenticationType authType;
if (authentication.contains(DIGEST)) {
authType = DIGEST;
} else if (authentication.contains(BASIC)) {
authType = BASIC;
} else {
return null;
}
return getChallengeProcessor(host, challenges, authType);
}