Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for generatePublic (0.07 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

        val x509PublicKey =
          encodeKey(
            algorithm = RSA_ENCRYPTION,
            publicKeyBytes = publicKeyBytes,
          )
        val keyFactory = KeyFactory.getInstance("RSA")
        val publicKey = keyFactory.generatePublic(X509EncodedKeySpec(x509PublicKey.toByteArray()))
        val privateKey = keyFactory.generatePrivate(PKCS8EncodedKeySpec(privateKeyBytes.toByteArray()))
    
        val certificate =
          HeldCertificate.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
Back to top