protected void configureBasicAuth(HttpRequest request) {
        String username = getConfig().getUsername();
        String password = getConfig().getPassword();
        String up = username + ":" + password; //$NON-NLS-1$
        String base64 = new String(Base64.encodeBase64(up.getBytes(StandardCharsets.UTF_8))); //$NON-NLS-1$
        String authHeader = "Basic " + base64; //$NON-NLS-1$
        request.setHeader("Authorization", authHeader); //$NON-NLS-1$
    }
Configures BASIC authentication for the request.
@param request
manager/api/gateway/src/main/java/io/apiman/manager/api/gateway/rest/RestGatewayLink.java