public final class JavaNetAuthenticator extends Object implements Authenticator
Authenticator to Authenticator. Configure OkHttp to use Authenticator with OkHttpClient.Builder.authenticator or OkHttpClient.Builder.proxyAuthenticator(Authenticator).NONE| Constructor and Description |
|---|
JavaNetAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
Request |
authenticate(Route route,
Response response)
Returns a request that includes a credential to satisfy an authentication challenge in
response. |
public Request authenticate(Route route, Response response) throws IOException
Authenticatorresponse. Returns null if the challenge cannot be satisfied.authenticate in interface AuthenticatorIOExceptionCopyright © 2017. All Rights Reserved.