Home
last modified time | relevance | path

Searched refs:ConnectionSpec (Results 1 – 16 of 16) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DConnectionSpecTest.java35 new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) in noTlsVersions()
46 new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) in noCipherSuites()
56 ConnectionSpec cleartextSpec = new ConnectionSpec.Builder(false).build(); in cleartextBuilder()
61 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(true) in tlsBuilder_explicitCiphers()
72 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(true) in tlsBuilder_defaultCiphers()
82 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(true) in tls_defaultCiphers_noFallbackIndicator()
110 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(true) in tls_defaultCiphers_withFallbackIndicator()
141 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(true) in tls_explicitCiphers()
172 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) in tls_stringCiphersAndVersions()
179 ConnectionSpec tlsSpec = new ConnectionSpec.Builder(true) in tls_missingRequiredCipher()
[all …]
DAddressTest.java33 private List<ConnectionSpec> connectionSpecs = Util.immutableList(ConnectionSpec.MODERN_TLS);
DConnectionPoolTest.java203 Collections.<ConnectionSpec>emptyList(), in newAddress()
DCallTest.java974 client.setConnectionSpecs(Arrays.asList(ConnectionSpec.MODERN_TLS, ConnectionSpec.CLEARTEXT)); in noRecoveryFromTlsHandshakeFailureWhenTlsFallbackIsDisabled()
997 Arrays.asList(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS)); in cleartextCallsFailWhenCleartextIsDisabled()
DURLConnectionTest.java887 client.client().setConnectionSpecs(Util.immutableList(ConnectionSpec.MODERN_TLS)); in connectViaHttpProxyToHttpsUsingBadProxyAndHttpResponseCache()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/
DConnectionSpecSelectorTest.java18 import com.squareup.okhttp.ConnectionSpec;
47 createConnectionSpecSelector(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS); in nonRetryableIOException()
60 createConnectionSpecSelector(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS); in nonRetryableSSLHandshakeException()
75 createConnectionSpecSelector(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS); in retryableSSLHandshakeException()
86 ConnectionSpec sslV3 = in someFallbacksSupported()
87 new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) in someFallbacksSupported()
92 ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS, sslV3); in someFallbacksSupported()
118 ConnectionSpec... connectionSpecs) { in createConnectionSpecSelector()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DConnectionSpec.java38 public final class ConnectionSpec { class
64 public static final ConnectionSpec MODERN_TLS = new Builder(true)
71 public static final ConnectionSpec COMPATIBLE_TLS = new Builder(MODERN_TLS)
77 public static final ConnectionSpec CLEARTEXT = new Builder(false).build();
84 private ConnectionSpec(Builder builder) { in ConnectionSpec() method in ConnectionSpec
129 ConnectionSpec specToApply = supportedSpec(sslSocket, isFallback); in apply()
143 private ConnectionSpec supportedSpec(SSLSocket sslSocket, boolean isFallback) { in supportedSpec()
210 if (!(other instanceof ConnectionSpec)) return false; in equals()
213 ConnectionSpec that = (ConnectionSpec) other; in equals()
259 public Builder(ConnectionSpec connectionSpec) { in Builder()
[all …]
DOkHttpClient.java57 private static final List<ConnectionSpec> DEFAULT_CONNECTION_SPECS = Util.immutableList(
58 ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS, ConnectionSpec.CLEARTEXT);
106 public void apply(ConnectionSpec tlsConfiguration, SSLSocket sslSocket, boolean isFallback) {
124 private List<ConnectionSpec> connectionSpecs;
532 public OkHttpClient setConnectionSpecs(List<ConnectionSpec> connectionSpecs) { in setConnectionSpecs()
537 public List<ConnectionSpec> getConnectionSpecs() { in getConnectionSpecs()
DAddress.java44 final List<ConnectionSpec> connectionSpecs;
54 List<Protocol> protocols, List<ConnectionSpec> connectionSpecs, ProxySelector proxySelector) { in Address()
137 public List<ConnectionSpec> getConnectionSpecs() { in getConnectionSpecs()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DConnectionSpecSelector.java19 import com.squareup.okhttp.ConnectionSpec;
39 private final List<ConnectionSpec> connectionSpecs;
44 public ConnectionSpecSelector(List<ConnectionSpec> connectionSpecs) { in ConnectionSpecSelector()
55 public ConnectionSpec configureSecureSocket(SSLSocket sslSocket) throws IOException { in configureSecureSocket()
56 ConnectionSpec tlsConfiguration = null; in configureSecureSocket()
58 ConnectionSpec connectionSpec = connectionSpecs.get(i); in configureSecureSocket()
DInternal.java22 import com.squareup.okhttp.ConnectionSpec;
65 public abstract void apply(ConnectionSpec tlsConfiguration, SSLSocket sslSocket, in apply()
/external/okhttp/android/main/java/com/squareup/okhttp/
DHttpsHandler.java35 private static final ConnectionSpec TLS_CONNECTION_SPEC = new ConnectionSpec.Builder(true)
DHttpHandler.java35 private final static List<ConnectionSpec> CLEARTEXT_ONLY =
36 Collections.singletonList(ConnectionSpec.CLEARTEXT);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DRouteSelectorTest.java20 import com.squareup.okhttp.ConnectionSpec;
49 public final List<ConnectionSpec> connectionSpecs = Util.immutableList(
50 ConnectionSpec.MODERN_TLS,
51 ConnectionSpec.COMPATIBLE_TLS,
52 ConnectionSpec.CLEARTEXT);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/io/
DRealConnection.java22 import com.squareup.okhttp.ConnectionSpec;
93 List<ConnectionSpec> connectionSpecs, boolean connectionRetryEnabled) throws RouteException { in connect()
102 && !connectionSpecs.contains(ConnectionSpec.CLEARTEXT)) { in connect()
185 ConnectionSpec connectionSpec = connectionSpecSelector.configureSecureSocket(sslSocket); in connectTls()
/external/okhttp/
DCHANGELOG.md207 for each. This changes `Address` to no longer use `ConnectionSpec`. (This is
254 * New: `ConnectionSpec.isCompatible(SSLSocket)`.
284 custom `ConnectionSpec`.
325 * New: ConnectionSpec can now be configured to use the SSL socket's default
345 running SSLv3, you must manually configure your own `ConnectionSpec`.
393 `ConnectionSpec` class.
399 ConnectionSpec.MODERN_TLS, ConnectionSpec.CLEARTEXT));
406 ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS));