spring-framework / org.springframework.http.client.support / BasicAuthorizationInterceptor / <init>

<init>

BasicAuthorizationInterceptor(@Nullable username: String, @Nullable password: String)

Create a new interceptor which adds a BASIC authorization header for the given username and password.

Parameters

username - the username to use

password - the password to use