Class BasicAuthenticationInterceptor

java.lang.Object
org.springframework.http.client.support.BasicAuthenticationInterceptor
All Implemented Interfaces:
ClientHttpRequestInterceptor

public class BasicAuthenticationInterceptor extends Object implements ClientHttpRequestInterceptor
ClientHttpRequestInterceptor to apply a given HTTP Basic Authentication username/password pair, unless a custom Authorization header has already been set.
Since:
5.1.1
Author:
Juergen Hoeller, Sam Brannen
See Also: