| Package | Description |
|---|---|
| okhttp3 |
An HTTP+HTTP/2 client for Android and Java applications.
|
| Modifier and Type | Field and Description |
|---|---|
private TlsVersion |
Handshake.tlsVersion |
| Modifier and Type | Method and Description |
|---|---|
static TlsVersion |
TlsVersion.forJavaName(java.lang.String javaName) |
TlsVersion |
Handshake.tlsVersion()
Returns the TLS version used for this connection.
|
static TlsVersion |
TlsVersion.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TlsVersion[] |
TlsVersion.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.util.List<TlsVersion> |
TlsVersion.forJavaNames(java.lang.String... tlsVersions) |
java.util.List<TlsVersion> |
ConnectionSpec.tlsVersions()
Returns the TLS versions to use when negotiating a connection.
|
| Modifier and Type | Method and Description |
|---|---|
static Handshake |
Handshake.get(TlsVersion tlsVersion,
CipherSuite cipherSuite,
java.util.List<java.security.cert.Certificate> peerCertificates,
java.util.List<java.security.cert.Certificate> localCertificates) |
ConnectionSpec.Builder |
ConnectionSpec.Builder.tlsVersions(TlsVersion... tlsVersions) |
| Constructor and Description |
|---|
Handshake(TlsVersion tlsVersion,
CipherSuite cipherSuite,
java.util.List<java.security.cert.Certificate> peerCertificates,
java.util.List<java.security.cert.Certificate> localCertificates) |