Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for isBouncyCastle (0.06 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

          keyStore.setKeyEntry("private", heldCertificate.keyPair.private, password, chain)
        }
    
        // https://github.com/bcgit/bc-java/issues/1160
        val isBouncyCastle = keyStore.provider.name == "BC"
        val algorithm = if (isBouncyCastle) "PKIX" else KeyManagerFactory.getDefaultAlgorithm()
    
        val factory = KeyManagerFactory.getInstance(algorithm)
        factory.init(keyStore, password)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (1)
  2. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

        val response = call.execute()
        assertThat(response.isSuccessful).isTrue()
    
        val recordedRequest = server.takeRequest()
        // https://github.com/bcgit/bc-java/issues/1773
        if (!platform.isBouncyCastle()) {
          assertThat(recordedRequest.handshakeServerNames).containsExactly(url.host)
        }
      }
    
      /**
       * Use different hostnames for the TLS handshake (including SNI) and the HTTP request (in the
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

        fun isJdk9() = getPlatformSystemProperty() == JDK9_PROPERTY
    
        fun isJdk8() = getPlatformSystemProperty() == JDK8_PROPERTY
    
        fun isJdk8Alpn() = getPlatformSystemProperty() == JDK8_ALPN_PROPERTY
    
        fun isBouncyCastle() = getPlatformSystemProperty() == BOUNCYCASTLE_PROPERTY
    
        fun isOpenJsse() = getPlatformSystemProperty() == OPENJSSE_PROPERTY
    
        fun isLoom() = getPlatformSystemProperty() == LOOM_PROPERTY
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 15.4K bytes
    - Viewed (1)
  4. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

          """.trimMargin()
        val heldCertificate = decode(certificatePem + pkcs8Pem)
        assertThat(heldCertificate.certificatePem()).isEqualTo(certificatePem)
    
        // Slightly different encoding
        if (platform.isBouncyCastle()) {
          assertThat(heldCertificate.privateKeyPkcs8Pem()).isEqualTo(bcPkcs8Pem)
        } else {
          assertThat(heldCertificate.privateKeyPkcs8Pem()).isEqualTo(pkcs8Pem)
        }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 22.6K bytes
    - Viewed (0)
Back to top