public interface Authenticator
| Modifier and Type | Field and Description |
|---|---|
static Authenticator |
NONE
不知道任何凭据且不尝试进行身份验证的验证程序.
|
| Modifier and Type | Method and Description |
|---|---|
Request |
authenticate(Route route,
Response response)
该请求包含满足
response中的身份验证挑战的凭据。如果无法满足挑战,则返回null. |
static final Authenticator NONE
Request authenticate(Route route, Response response) throws IOException
response中的身份验证挑战的凭据。如果无法满足挑战,则返回null.
该路线是最好的努力,它目前可能不总是提供,即使在逻辑上可用
在应用程序拦截器中手动重用身份验证器时,例如在实现特定于客户机的重试时,也可能不提供此功能route - 路由信息response - 响应体IOException - 异常信息Copyright © 2020. All rights reserved.