- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for HeldCertificate (0.6 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
* a chain of certificates. The server uses a set of trusted root certificates to authenticate the * client. Subject alternative names are not used for client authentication. */ @Suppress("DEPRECATION") class HeldCertificate( @get:JvmName("keyPair") val keyPair: KeyPair, @get:JvmName("certificate") val certificate: X509Certificate, ) { @JvmName("-deprecated_certificate") @Deprecated( message = "moved to val",
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0) -
okhttp-tls/api/okhttp-tls.api
public final fun signedBy (Lokhttp3/tls/HeldCertificate;)Lokhttp3/tls/HeldCertificate$Builder; public final fun validityInterval (JJ)Lokhttp3/tls/HeldCertificate$Builder; } public final class okhttp3/tls/HeldCertificate$Builder$Companion { } public final class okhttp3/tls/HeldCertificate$Companion { public final fun decode (Ljava/lang/String;)Lokhttp3/tls/HeldCertificate;
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Feb 26 19:17:33 UTC 2022 - 3.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt
@Test fun pinRootNotPresentInChain() { // Fails on 11.0.1 https://github.com/square/okhttp/issues/4703 val rootCa = HeldCertificate.Builder() .serialNumber(1L) .certificateAuthority(1) .commonName("root") .build() val intermediateCa = HeldCertificate.Builder() .signedBy(rootCa) .certificateAuthority(0) .serialNumber(2L)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.8K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt
platform.assumeNotBouncyCastle() val clientRoot = HeldCertificate.Builder() .certificateAuthority(1) .build() val clientIntermediate = HeldCertificate.Builder() .certificateAuthority(0) .signedBy(clientRoot) .build() val clientCertificate = HeldCertificate.Builder() .signedBy(clientIntermediate) .build() val serverRoot =
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 7.1K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt
* `heldCertificate` is null. */ @JvmStatic fun newKeyManager( keyStoreType: String?, heldCertificate: HeldCertificate?, vararg intermediates: X509Certificate, ): X509KeyManager { val keyStore = newEmptyKeyStore(keyStoreType) if (heldCertificate != null) { val chain = arrayOfNulls<Certificate>(1 + intermediates.size)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CertificateChainCleanerTest.kt
import okhttp3.tls.HandshakeCertificates import okhttp3.tls.HeldCertificate import org.junit.jupiter.api.Test class CertificateChainCleanerTest { @Test fun equalsFromCertificate() { val rootA = HeldCertificate.Builder() .serialNumber(1L) .build() val rootB = HeldCertificate.Builder() .serialNumber(2L) .build()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.3K bytes - Viewed (0) -
okhttp-tls/README.md
HeldCertificate intermediateCertificate = new HeldCertificate.Builder() .certificateAuthority(0) .signedBy(rootCertificate) .build(); HeldCertificate serverCertificate = new HeldCertificate.Builder() .addSubjectAlternativeName("localhost") .signedBy(intermediateCertificate) .build(); ``` To serve this configuration the server needs to provide its clients with a chain of certificates
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 9.1K 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() .commonName("cash.app")
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 22.5K 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: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 02 14:04:37 UTC 2023 - 2.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HandshakeTest.kt
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() val serverCertificate = HeldCertificate.Builder()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.2K bytes - Viewed (0)