Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for SSLException (0.06 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt

            .build()
    
        val call = client.newCall(Request(server.url("/")))
        assertFailsWith<SSLException> {
          call.execute()
        }
      }
    
      @Test fun `untrusted host not in insecureHosts fails with SSLException`() {
        val serverCertificates = platform.localhostHandshakeCertificates()
        server.useHttps(serverCertificates.sslSocketFactory())
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

     */
    package okhttp3.internal.tls
    
    import java.security.cert.CertificateParsingException
    import java.security.cert.X509Certificate
    import java.util.Locale
    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.SSLException
    import javax.net.ssl.SSLSession
    import okhttp3.internal.canParseAsIpAddress
    import okhttp3.internal.toCanonicalHost
    import okio.utf8Size
    
    /**
     * A HostnameVerifier consistent with [RFC 2818][rfc_2818].
     *
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt

          call.execute()
        }.also { expected ->
          when (expected) {
            is SSLHandshakeException -> {
              // JDK 11+
            }
    
            is SSLException -> {
              // javax.net.ssl.SSLException: readRecord
            }
    
            is SocketException -> {
              // Conscrypt, JDK 8 (>= 292), JDK 9
            }
    
            else -> {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 13K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionReuseTest.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import java.io.IOException
    import java.util.concurrent.TimeUnit
    import javax.net.ssl.SSLException
    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.SocketEffect.CloseSocket
    import mockwebserver3.SocketEffect.ShutdownConnection
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.3K bytes
    - Click Count (1)
  5. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt

    import java.net.URI
    import java.security.cert.X509Certificate
    import java.util.Locale.getDefault
    import java.util.concurrent.TimeUnit
    import javax.net.SocketFactory
    import javax.net.ssl.HostnameVerifier
    import javax.net.ssl.SSLException
    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    import javax.net.ssl.X509TrustManager
    import kotlin.time.Duration.Companion.minutes
    import kotlin.time.Duration.Companion.nanoseconds
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

            }
    
            is SSLHandshakeException -> {
              // Android's response to the FAIL_HANDSHAKE
            }
    
            is SSLException -> {
              // JDK 1.9 response to the FAIL_HANDSHAKE
              // javax.net.ssl.SSLException: Unexpected handshake message: client_hello
            }
    
            is SocketException -> {
              // Conscrypt's response to the FAIL_HANDSHAKE
            }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 133.3K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

    import java.util.concurrent.SynchronousQueue
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.TimeoutException
    import java.util.concurrent.atomic.AtomicReference
    import javax.net.ssl.SSLException
    import kotlin.test.assertFailsWith
    import mockwebserver3.Dispatcher
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.PushPromise
    import mockwebserver3.QueueDispatcher
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicBoolean
    import java.util.concurrent.atomic.AtomicInteger
    import java.util.concurrent.atomic.AtomicReference
    import javax.net.ssl.SSLException
    import javax.net.ssl.SSLHandshakeException
    import javax.net.ssl.SSLPeerUnverifiedException
    import javax.net.ssl.SSLProtocolException
    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
Back to Top