An implementation of Spring's RestTemplate with pre-emptive Basic and Digest authentication