addCredentials 抽象方法

void addCredentials(
  1. Uri url,
  2. String realm,
  3. HttpClientCredentials credentials
)

添加用于授权 HTTP 请求的凭据。

实现

void addCredentials(Uri url, String realm, HttpClientCredentials credentials);