Modifier and Type | Field and Description |
---|---|
static Authenticator |
Authenticator.NONE
An authenticator that knows no credentials and makes no attempt to authenticate.
|
Modifier and Type | Method and Description |
---|---|
Authenticator |
OkHttpClient.authenticator() |
Authenticator |
OkHttpClient.proxyAuthenticator() |
Authenticator |
Address.proxyAuthenticator()
Returns the client's proxy authenticator.
|
Modifier and Type | Method and Description |
---|---|
OkHttpClient.Builder |
OkHttpClient.Builder.authenticator(Authenticator authenticator)
Sets the authenticator used to respond to challenges from origin servers.
|
OkHttpClient.Builder |
OkHttpClient.Builder.proxyAuthenticator(Authenticator proxyAuthenticator)
Sets the authenticator used to respond to challenges from proxy servers.
|
Constructor and Description |
---|
Address(String uriHost,
int uriPort,
Dns dns,
SocketFactory socketFactory,
SSLSocketFactory sslSocketFactory,
HostnameVerifier hostnameVerifier,
CertificatePinner certificatePinner,
Authenticator proxyAuthenticator,
Proxy proxy,
List<Protocol> protocols,
List<ConnectionSpec> connectionSpecs,
ProxySelector proxySelector) |
Copyright © 2019. All rights reserved.