Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for newProviderBuilder (0.14 sec)

  1. okhttp/src/test/java/okhttp3/TestTls13Request.kt

        }
      } catch (ioe: IOException) {
        println(ioe)
      }
    }
    
    fun main(vararg args: String) {
      // System.setProperty("javax.net.debug", "ssl:handshake:verbose");
      Security.insertProviderAt(Conscrypt.newProviderBuilder().provideTrustManager().build(), 1)
      println("Running tests using ${Platform.get()} ${System.getProperty("java.vm.version")}")
    
      // https://github.com/tlswg/tls13-spec/wiki/Implementations
      val urls =
        listOf(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/platform/android/AndroidSocketAdapterTest.kt

      @RegisterExtension @JvmField
      val platform = PlatformRule()
    
      @BeforeEach
      fun setUp() {
        platform.assumeConscrypt()
      }
    
      val context: SSLContext by lazy {
        val provider: Provider = Conscrypt.newProviderBuilder().provideTrustManager(true).build()
    
        SSLContext.getInstance("TLS", provider).apply {
          init(null, null, null)
        }
      }
    
      @ParameterizedTest
      @MethodSource("data")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

                if (!Conscrypt.isAvailable()) {
                  System.err.println("Warning: Conscrypt not available")
                }
    
                val provider =
                  Conscrypt.newProviderBuilder()
                    .provideTrustManager(true)
                    .build()
                Security.insertProviderAt(provider, 1)
              }
            } else if (platformSystemProperty == JDK8_ALPN_PROPERTY) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.3K bytes
    - Viewed (1)
  4. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        response.use {
          assertEquals(200, response.code)
        }
      }
    
      @Test
      fun testConscryptRequest() {
        assumeNetwork()
    
        try {
          Security.insertProviderAt(Conscrypt.newProviderBuilder().build(), 1)
    
          val request = Request.Builder().url("https://facebook.com/robots.txt").build()
    
          var socketClass: String? = null
    
          val clientCertificates =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top