Searched refs:TlsVersion (Results 1 – 6 of 6) sorted by relevance
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | ConnectionSpecTest.java | 36 .tlsVersions(new TlsVersion[0]) in noTlsVersions() 63 .tlsVersions(TlsVersion.TLS_1_2) in tlsBuilder_explicitCiphers() 67 assertEquals(Arrays.asList(TlsVersion.TLS_1_2), tlsSpec.tlsVersions()); in tlsBuilder_explicitCiphers() 73 .tlsVersions(TlsVersion.TLS_1_2) in tlsBuilder_defaultCiphers() 77 assertEquals(Arrays.asList(TlsVersion.TLS_1_2), tlsSpec.tlsVersions()); in tlsBuilder_defaultCiphers() 83 .tlsVersions(TlsVersion.TLS_1_2) in tls_defaultCiphers_noFallbackIndicator() 93 TlsVersion.TLS_1_2.javaName, in tls_defaultCiphers_noFallbackIndicator() 94 TlsVersion.TLS_1_1.javaName, in tls_defaultCiphers_noFallbackIndicator() 100 assertEquals(set(TlsVersion.TLS_1_2.javaName), set(socket.getEnabledProtocols())); in tls_defaultCiphers_noFallbackIndicator() 111 .tlsVersions(TlsVersion.TLS_1_2) in tls_defaultCiphers_withFallbackIndicator() [all …]
|
D | URLConnectionTest.java | 610 assertEquals(TlsVersion.TLS_1_0, request.getTlsVersion()); in connectViaHttpsWithSSLFallback() 651 Set<TlsVersion> tlsVersions = in sslFallbackNotUsedWhenRecycledConnectionFails() 652 EnumSet.of(TlsVersion.TLS_1_0, TlsVersion.TLS_1_2); // v1.2 on OpenJDK 8. in sslFallbackNotUsedWhenRecycledConnectionFails()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/ |
D | ConnectionSpecSelectorTest.java | 19 import com.squareup.okhttp.TlsVersion; 48 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in nonRetryableIOException() 61 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in nonRetryableSSLHandshakeException() 76 SSLSocket socket = createSocketWithEnabledProtocols(TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in retryableSSLHandshakeException() 88 .tlsVersions(TlsVersion.SSL_3_0) in someFallbacksSupported() 94 TlsVersion[] enabledSocketTlsVersions = { TlsVersion.TLS_1_1, TlsVersion.TLS_1_0 }; in someFallbacksSupported() 99 assertEnabledProtocols(socket, TlsVersion.TLS_1_1, TlsVersion.TLS_1_0); in someFallbacksSupported() 108 assertEnabledProtocols(socket, TlsVersion.TLS_1_0); in someFallbacksSupported() 122 private SSLSocket createSocketWithEnabledProtocols(TlsVersion... tlsVersions) throws IOException { in createSocketWithEnabledProtocols() 128 private static void assertEnabledProtocols(SSLSocket socket, TlsVersion... required) { in assertEnabledProtocols() [all …]
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | ConnectionSpec.java | 66 .tlsVersions(TlsVersion.TLS_1_2, TlsVersion.TLS_1_1, TlsVersion.TLS_1_0) 72 .tlsVersions(TlsVersion.TLS_1_0) 113 public List<TlsVersion> tlsVersions() { in tlsVersions() 116 TlsVersion[] result = new TlsVersion[tlsVersions.length]; in tlsVersions() 118 result[i] = TlsVersion.forJavaName(tlsVersions[i]); in tlsVersions() 299 public Builder tlsVersions(TlsVersion... tlsVersions) { in tlsVersions()
|
D | TlsVersion.java | 24 public enum TlsVersion { enum 33 TlsVersion(String javaName) { in TlsVersion() method in TlsVersion 37 public static TlsVersion forJavaName(String javaName) { in forJavaName()
|
/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/mockwebserver/ |
D | RecordedRequest.java | 20 import com.squareup.okhttp.TlsVersion; 36 private final TlsVersion tlsVersion; 47 ? TlsVersion.forJavaName(((SSLSocket) socket).getSession().getProtocol()) in RecordedRequest() 120 public TlsVersion getTlsVersion() { in getTlsVersion()
|