public class BasicAuthenticator extends java.lang.Object implements CachingAuthenticator
| Constructor and Description |
|---|
BasicAuthenticator(Credentials credentials) |
BasicAuthenticator(Credentials credentials,
java.nio.charset.Charset credentialsCharset) |
| 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 BasicAuthenticator(Credentials credentials, java.nio.charset.Charset credentialsCharset)
public BasicAuthenticator(Credentials credentials)
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