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