) throws IOException {
HttpAuthHeader authHeader = new HttpAuthHeader(connection.getHeaderField("WWW-Authenticate"));
URL currentURL = connection.getURL();
String realm = authHeader.getRealm();
detectAuthorizationLoop(getConduitName(), message, currentURL, realm);
AuthorizationPolicy effectiveAthPolicy = getEffectiveAuthPolicy(message);
String authorizationToken =
authSupplier.getAuthorization(
effectiveAthPolicy, currentURL, message, authHeader.getFullHeader());
if (authorizationToken == null) {
// authentication not possible => we give up