- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for keyPair (0.03 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
* generated. */ fun keyPair(keyPair: KeyPair) = apply { this.keyPair = keyPair } /** * Sets the public/private key pair used for this certificate. If unset a key pair will be * generated. */ fun keyPair( publicKey: PublicKey, privateKey: PrivateKey, ) = apply { keyPair(KeyPair(publicKey, privateKey)) } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 21.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt
builder.add("example.com", "sha1/DmxUShsZuNiqPQsX2Oi9uv2sCnw*") } } /** Multiple certificates generated from the same keypair have the same pin. */ @Test fun sameKeypairSamePin() { val heldCertificateA2 = HeldCertificate .Builder() .keyPair(certA1.keyPair) .serialNumber(101L) .build() val keypairACertificate2Pin = pin(heldCertificateA2.certificate)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.1K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
), ) assertThat(okHttpCertificateWithBadSignature.checkSignature(root.keyPair.public)).isFalse() // Wrong public key. assertThat(okHttpCertificate.checkSignature(certificate.keyPair.public)).isFalse() } @Test fun `EC issuer and signature`() { val root = HeldCertificate .Builder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 43.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
val keyPair: KeyPair = heldCertificate.keyPair val certificatePem: String = heldCertificate.certificatePem() val privateKeyPkcs8Pem: String = heldCertificate.privateKeyPkcs8Pem() val privateKeyPkcs1Pem: String = heldCertificate.privateKeyPkcs1Pem() } @Test fun heldCertificateBuilder() { val keyPair: KeyPair = KeyPairGenerator.getInstance("").genKeyPair()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 46.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
.commonName("pinned intermediate") .signedBy(pinnedRoot) .build() val attackerSwitch = HeldCertificate .Builder() .serialNumber(5L) .keyPair(attackerIntermediate.keyPair) // share keys between compromised CA and leaf! .commonName("attacker") .addSubjectAlternativeName("attacker.com") .signedBy(pinnedIntermediate) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 24.3K bytes - Viewed (1) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
@Test @Disabled fun heldCertificate() { val heldCertificate: HeldCertificate = HeldCertificate.Builder().build() val certificate: X509Certificate = heldCertificate.certificate() val keyPair: KeyPair = heldCertificate.keyPair() } @Test @Disabled fun mediaType() { val mediaType: MediaType = MediaType.get("") val type: String = mediaType.type() val subtype: String = mediaType.subtype()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 13.3K bytes - Viewed (0) -
docs/changelogs/upgrading_to_okhttp_4.md
* **Handshake**: cipherSuite, localCertificates, localPrincipal, peerCertificates, peerPrincipal, tlsVersion * **HandshakeCertificates**: keyManager, trustManager * **Headers**: size * **HeldCertificate**: certificate, keyPair * **HttpLoggingInterceptor**: level * **HttpUrl**: encodedFragment, encodedPassword, encodedPath, encodedPathSegments, encodedQuery, encodedUsername, fragment, host, password, pathSegments, pathSize, port, query,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:58:16 UTC 2022 - 10.9K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
val privateKey = keyFactory.generatePrivate( PKCS8EncodedKeySpec(privateKeyBytes.toByteArray()), ) val heldCertificate = HeldCertificate .Builder() .keyPair(publicKey, privateKey) .commonName("cash.app") .validityInterval(0L, 1000L) .rsa2048() .build() assertThat( """ |-----BEGIN CERTIFICATE-----
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 22.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LinkedListMultimap.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 26.6K bytes - Viewed (0)