Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for HeldCertificate (0.11 sec)

  1. 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: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. 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: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/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)
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. 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: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

      private lateinit var server: MockWebServer
      private lateinit var serverRootCa: HeldCertificate
      private lateinit var serverIntermediateCa: HeldCertificate
      private lateinit var serverCert: HeldCertificate
      private lateinit var clientRootCa: HeldCertificate
      private lateinit var clientIntermediateCa: HeldCertificate
      private lateinit var clientCert: HeldCertificate
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

      }
    
      @Test fun generatedCertificate() {
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("Foo Corp")
            .addSubjectAlternativeName("foo.com")
            .build()
        val session = session(heldCertificate.certificatePem())
        assertThat(verifier.verify("foo.com", session)).isTrue()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val heldCertificate: HeldCertificate = HeldCertificate.Builder().build()
        builder = builder.heldCertificate(heldCertificate, heldCertificate.certificate())
        builder = builder.addTrustedCertificate(heldCertificate.certificate())
      }
    
      @Test @Disabled
      fun heldCertificate() {
        val heldCertificate: HeldCertificate = HeldCertificate.Builder().build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_4x.md

    
    ## Version 4.2.0
    
    _2019-09-10_
    
     *  New: API to decode a certificate and private key to create a `HeldCertificate`. This accepts a
        string containing both a certificate and PKCS #8-encoded private key.
    
        ```kotlin
        val heldCertificate = HeldCertificate.decode("""
            |-----BEGIN CERTIFICATE-----
            |MIIBYTCCAQegAwIBAgIBKjAKBggqhkjOPQQDAjApMRQwEgYDVQQLEwtlbmdpbmVl
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top