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
Authenticator
response
. Returns null if the challenge cannot be satisfied.authenticate
in interface Authenticator
IOException
Copyright © 2018. All rights reserved.