@Override public void handle(URLConnection connection) { if (connection instanceof HttpURLConnection && matches(connection) && password != null && user != null) { if (!(connection instanceof HttpsURLConnection)) logger.debug("using basic authentication with http instead of https, this is very insecure: {}", connection.getURL()); connection.setRequestProperty(HEADER_AUTHORIZATION, authentication); } }
@Override public void handle(URLConnection connection) { if (connection instanceof HttpURLConnection && matches(connection) && password != null && user != null) { if (!(connection instanceof HttpsURLConnection)) logger.debug("using basic authentication with http instead of https, this is very insecure: {}", connection.getURL()); connection.setRequestProperty(HEADER_AUTHORIZATION, authentication); } }
public void handle(URLConnection connection) { if (connection instanceof HttpURLConnection && matches(connection) && password != null && user != null) { if (!(connection instanceof HttpsURLConnection)) trace("using basic authentication with http instead of https, this is very insecure: %s", connection.getURL()); connection.setRequestProperty(HEADER_AUTHORIZATION, authentication); } }
public void handle(URLConnection connection) { if (connection instanceof HttpURLConnection && matches(connection) && password != null && user != null) { if (!(connection instanceof HttpsURLConnection)) trace("using basic authentication with http instead of https, this is very insecure: %s", connection.getURL()); connection.setRequestProperty(HEADER_AUTHORIZATION, authentication); } }