public class DispatchingAuthenticator extends java.lang.Object implements CachingAuthenticator
| Modifier and Type | Class and Description |
|---|---|
static class |
DispatchingAuthenticator.Builder |
| Modifier and Type | Method and Description |
|---|---|
okhttp3.Request |
authenticate(okhttp3.Route route,
okhttp3.Response response) |
okhttp3.Request |
authenticateWithState(okhttp3.Route route,
okhttp3.Request request)
Authenticate the new request using cached information already established from an earlier
authentication.
|
public okhttp3.Request authenticate(okhttp3.Route route,
okhttp3.Response response)
throws java.io.IOException
authenticate in interface okhttp3.Authenticatorjava.io.IOExceptionpublic okhttp3.Request authenticateWithState(okhttp3.Route route,
okhttp3.Request request)
throws java.io.IOException
CachingAuthenticatorauthenticateWithState in interface CachingAuthenticatorroute - the route to userequest - the new request to be authenticated.java.io.IOException - in case of a communication problem