- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 30 for heldCertificate (0.07 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
@Test fun heldCertificate() { val heldCertificate: HeldCertificate = HeldCertificate.Builder().build() val certificate: X509Certificate = heldCertificate.certificate val keyPair: KeyPair = heldCertificate.keyPair val certificatePem: String = heldCertificate.certificatePem() val privateKeyPkcs8Pem: String = heldCertificate.privateKeyPkcs8Pem() val privateKeyPkcs1Pem: String = heldCertificate.privateKeyPkcs1Pem() }
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-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt
* transmitting it is unnecessary. */ fun heldCertificate( heldCertificate: HeldCertificate, vararg intermediates: X509Certificate, ) = apply { this.heldCertificate = heldCertificate this.intermediates = arrayOf(*intermediates) // Defensive copy. } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.4K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
@Test fun commonName() { val heldCertificate = HeldCertificate .Builder() .commonName("cash.app") .build() val certificate = heldCertificate.certificate assertThat(certificate.getSubjectX500Principal().name).isEqualTo("CN=cash.app") } @Test fun organizationalUnit() { val heldCertificate = HeldCertificate .Builder()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 22.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt
} @Test fun `bad certificates host in insecureHosts fails with SSLException`() { val heldCertificate = HeldCertificate .Builder() .addSubjectAlternativeName("example.com") .build() val serverCertificates = HandshakeCertificates .Builder() .heldCertificate(heldCertificate) .build() server.useHttps(serverCertificates.sslSocketFactory())
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 4.2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/HttpsServer.java
import okhttp3.mockwebserver.MockWebServer; import okhttp3.tls.HandshakeCertificates; import okhttp3.tls.HeldCertificate; /** * Create an HTTPS server with a self-signed certificate that OkHttp trusts. */ public class HttpsServer { public void run() throws Exception { HeldCertificate localhostCertificate = new HeldCertificate.Builder() .addSubjectAlternativeName("localhost") .build();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jan 02 14:04:37 UTC 2023 - 2.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HandshakeTest.kt
import kotlin.test.assertFailsWith import okhttp3.Handshake.Companion.handshake import okhttp3.tls.HeldCertificate import org.junit.jupiter.api.Test class HandshakeTest { val serverRoot = HeldCertificate .Builder() .certificateAuthority(1) .build() val serverIntermediate = HeldCertificate .Builder() .certificateAuthority(0) .signedBy(serverRoot) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt
val heldCertificate = HeldCertificate .Builder() .commonName(hostname) .addSubjectAlternativeName(hostname) .build() HandshakeCertificates .Builder() .heldCertificate(heldCertificate) .addTrustedCertificate(heldCertificate.certificate) .build() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 8K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt
*/ @Test fun domainFronting() { val heldCertificate = HeldCertificate .Builder() .commonName("server name") .addSubjectAlternativeName("url-host.com") .build() val handshakeCertificates = HandshakeCertificates .Builder() .heldCertificate(heldCertificate) .addTrustedCertificate(heldCertificate.certificate) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerTest.kt
companion object { val certA1 = HeldCertificate .Builder() .serialNumber(100L) .build() val certA1Sha256Pin = pin(certA1.certificate) val certB1 = HeldCertificate .Builder() .serialNumber(200L) .build() val certB1Sha256Pin = pin(certB1.certificate) val certC1 = HeldCertificate .Builder() .serialNumber(300L)
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(encoded).isEqualTo(privateKeyInfoByteString) } @Test fun `RSA issuer and signature`() { val root = HeldCertificate .Builder() .certificateAuthority(0) .rsa2048() .build() val certificate = HeldCertificate .Builder() .signedBy(root) .rsa2048() .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 43.9K bytes - Viewed (0)