Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for SSLSocketFactory (0.17 sec)

  1. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

        val handshakeCertificates = localhost()
        server.useHttps(handshakeCertificates.sslSocketFactory())
    
        val dns =
          Dns {
            Dns.SYSTEM.lookup(server.hostName)
          }
    
        val client =
          clientTestRule.newClientBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .dns(dns)
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/Address.kt

        level = DeprecationLevel.ERROR,
      )
      fun proxy(): Proxy? = proxy
    
      @JvmName("-deprecated_sslSocketFactory")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "sslSocketFactory"),
        level = DeprecationLevel.ERROR,
      )
      fun sslSocketFactory(): SSLSocketFactory? = sslSocketFactory
    
      @JvmName("-deprecated_hostnameVerifier")
      @Deprecated(
        message = "moved to val",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/android/SocketAdapter.kt

    import javax.net.ssl.SSLSocket
    import javax.net.ssl.SSLSocketFactory
    import javax.net.ssl.X509TrustManager
    import okhttp3.Protocol
    
    interface SocketAdapter {
      fun isSupported(): Boolean
    
      fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager? = null
    
      fun matchesSocket(sslSocket: SSLSocket): Boolean
    
      fun matchesSocketFactory(sslSocketFactory: SSLSocketFactory): Boolean = false
    
      fun configureTlsExtensions(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/InsecureForHostTest.kt

        server.useHttps(serverCertificates.sslSocketFactory())
        server.enqueue(MockResponse())
    
        val clientCertificates =
          HandshakeCertificates.Builder()
            .addPlatformTrustedCertificates()
            .addInsecureHost(server.hostName)
            .build()
    
        val client =
          clientTestRule.newClientBuilder()
            .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/android/StandardAndroidSocketAdapter.kt

      sslSocketClass: Class<in SSLSocket>,
      private val sslSocketFactoryClass: Class<in SSLSocketFactory>,
      private val paramClass: Class<*>,
    ) : AndroidSocketAdapter(sslSocketClass) {
      override fun matchesSocketFactory(sslSocketFactory: SSLSocketFactory): Boolean = sslSocketFactoryClass.isInstance(sslSocketFactory)
    
      override fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager? {
        val context: Any? =
          readFieldOrNull(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        if (https) {
          server.useHttps(handshakeCertificates.sslSocketFactory())
          server2.useHttps(handshakeCertificates.sslSocketFactory())
          server2.protocolNegotiationEnabled = false
          client =
            client.newBuilder()
              .sslSocketFactory(
                handshakeCertificates.sslSocketFactory(),
                handshakeCertificates.trustManager,
              )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  7. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

          Platform.get().newSSLContext().apply {
            init(null, arrayOf(trustManager), null)
          }
        val sslSocketFactory = sslContext.socketFactory
    
        val hostnameVerifier = HostnameVerifier { _, _ -> true }
    
        client =
          client.newBuilder()
            .sslSocketFactory(sslSocketFactory, trustManager)
            .hostnameVerifier(hostnameVerifier)
            .build()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

        proxySelector: ProxySelector = this.proxySelector,
        sslSocketFactory: SSLSocketFactory? = this.sslSocketFactory,
        hostnameVerifier: HostnameVerifier? = this.hostnameVerifier,
      ): Address {
        return Address(
          uriHost = uriHost,
          uriPort = uriPort,
          dns = dns,
          socketFactory = SocketFactory.getDefault(),
          sslSocketFactory = sslSocketFactory,
          hostnameVerifier = hostnameVerifier,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/SessionReuseTest.kt

        }
      }
    
      private fun enableTls() {
        client =
          client.newBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            )
            .build()
        server.useHttps(handshakeCertificates.sslSocketFactory())
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (0)
  10. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

          builder.callTimeout(callTimeout.toLong(), SECONDS)
        }
        if (allowInsecure) {
          val trustManager = createInsecureTrustManager()
          val sslSocketFactory = createInsecureSslSocketFactory(trustManager)
          builder.sslSocketFactory(sslSocketFactory, trustManager)
          builder.hostnameVerifier(createInsecureHostnameVerifier())
        }
        if (verbose) {
          val logger = HttpLoggingInterceptor.Logger(::println)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (1)
Back to top