Package | Description |
---|---|
okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
okhttp3.internal | |
okhttp3.internal.connection |
Modifier and Type | Field and Description |
---|---|
static ConnectionSpec |
ConnectionSpec.CLEARTEXT
Unencrypted, unauthenticated connections for
http: URLs. |
static ConnectionSpec |
ConnectionSpec.COMPATIBLE_TLS
A backwards-compatible fallback configuration that works on obsolete client platforms and can
connect to obsolete servers.
|
static ConnectionSpec |
ConnectionSpec.MODERN_TLS
A modern TLS configuration that works on most client platforms and can connect to most servers.
|
static ConnectionSpec |
ConnectionSpec.RESTRICTED_TLS
A secure TLS connection that requires a recent client platform and a recent server.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<ConnectionSpec> |
Address.connectionSpecs |
(package private) java.util.List<ConnectionSpec> |
OkHttpClient.connectionSpecs |
(package private) java.util.List<ConnectionSpec> |
OkHttpClient.Builder.connectionSpecs |
(package private) static java.util.List<ConnectionSpec> |
OkHttpClient.DEFAULT_CONNECTION_SPECS |
Modifier and Type | Method and Description |
---|---|
ConnectionSpec |
ConnectionSpec.Builder.build() |
private ConnectionSpec |
ConnectionSpec.supportedSpec(javax.net.ssl.SSLSocket sslSocket,
boolean isFallback)
Returns a copy of this that omits cipher suites and TLS versions not enabled by
sslSocket . |
Modifier and Type | Method and Description |
---|---|
java.util.List<ConnectionSpec> |
Address.connectionSpecs() |
java.util.List<ConnectionSpec> |
OkHttpClient.connectionSpecs() |
Modifier and Type | Method and Description |
---|---|
OkHttpClient.Builder |
OkHttpClient.Builder.connectionSpecs(java.util.List<ConnectionSpec> connectionSpecs) |
Constructor and Description |
---|
Builder(ConnectionSpec connectionSpec) |
Constructor and Description |
---|
Address(java.lang.String uriHost,
int uriPort,
Dns dns,
javax.net.SocketFactory socketFactory,
javax.net.ssl.SSLSocketFactory sslSocketFactory,
javax.net.ssl.HostnameVerifier hostnameVerifier,
CertificatePinner certificatePinner,
Authenticator proxyAuthenticator,
java.net.Proxy proxy,
java.util.List<Protocol> protocols,
java.util.List<ConnectionSpec> connectionSpecs,
java.net.ProxySelector proxySelector) |
Modifier and Type | Method and Description |
---|---|
abstract void |
Internal.apply(ConnectionSpec tlsConfiguration,
javax.net.ssl.SSLSocket sslSocket,
boolean isFallback) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<ConnectionSpec> |
ConnectionSpecSelector.connectionSpecs |
Modifier and Type | Method and Description |
---|---|
(package private) ConnectionSpec |
ConnectionSpecSelector.configureSecureSocket(javax.net.ssl.SSLSocket sslSocket)
Configures the supplied
SSLSocket to connect to the specified host using an appropriate
ConnectionSpec . |
Constructor and Description |
---|
ConnectionSpecSelector(java.util.List<ConnectionSpec> connectionSpecs) |