Authenticator
in OkHttp 2.0.@Deprecated public interface OkAuthenticator
Modifier and Type | Interface and Description |
---|---|
static class |
OkAuthenticator.Challenge
Deprecated.
An RFC 2617 challenge.
|
static class |
OkAuthenticator.Credential
Deprecated.
An RFC 2617 credential.
|
Modifier and Type | Method and Description |
---|---|
OkAuthenticator.Credential |
authenticate(Proxy proxy,
URL url,
List<OkAuthenticator.Challenge> challenges)
Deprecated.
Returns a credential that satisfies the authentication challenge made by
url . |
OkAuthenticator.Credential |
authenticateProxy(Proxy proxy,
URL url,
List<OkAuthenticator.Challenge> challenges)
Deprecated.
Returns a credential that satisfies the authentication challenge made by
proxy . |
OkAuthenticator.Credential authenticate(Proxy proxy, URL url, List<OkAuthenticator.Challenge> challenges) throws IOException
url
. Returns null if the challenge cannot be satisfied. This method
is called in response to an HTTP 401 unauthorized status code sent by the
origin server.challenges
- parsed "WWW-Authenticate" challenge headers from the HTTP
response.IOException
OkAuthenticator.Credential authenticateProxy(Proxy proxy, URL url, List<OkAuthenticator.Challenge> challenges) throws IOException
proxy
. Returns null if the challenge cannot be satisfied. This
method is called in response to an HTTP 401 unauthorized status code sent
by the proxy server.challenges
- parsed "Proxy-Authenticate" challenge headers from the
HTTP response.IOException
Copyright © 2014. All Rights Reserved.