Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for privateKeyPkcs1Pem (0.15 sec)

  1. okhttp-tls/api/okhttp-tls.api

    	public final fun certificatePem ()Ljava/lang/String;
    	public static final fun decode (Ljava/lang/String;)Lokhttp3/tls/HeldCertificate;
    	public final fun keyPair ()Ljava/security/KeyPair;
    	public final fun privateKeyPkcs1Pem ()Ljava/lang/String;
    	public final fun privateKeyPkcs8Pem ()Ljava/lang/String;
    }
    
    public final class okhttp3/tls/HeldCertificate$Builder {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Feb 26 19:17:33 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

          |sXPVYAsGD1wizrXX+wFaL3chtF1oG1Fx/jcsSsG6BA==
          |-----END RSA PRIVATE KEY-----
          |
          """.trimMargin(),
        ).isEqualTo(heldCertificate.privateKeyPkcs1Pem())
        assertThat(
          """
          |-----BEGIN PRIVATE KEY-----
          |MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAICkUeG2stqfbyr6
          |gyiVm5pN9YEDRXlowi+rfYGyWhC7ouW9fXAnhgShQKMOU862mG3tcttSYGdsjM3z
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

       * Returns the RSA private key encoded in [PKCS #1][rfc_8017] [PEM format][rfc_7468].
       *
       * [rfc_8017]: https://tools.ietf.org/html/rfc8017
       * [rfc_7468]: https://tools.ietf.org/html/rfc7468
       */
      fun privateKeyPkcs1Pem(): String {
        check(keyPair.private is RSAPrivateKey) { "PKCS1 only supports RSA keys" }
        return buildString {
          append("-----BEGIN RSA PRIVATE KEY-----\n")
          encodeBase64Lines(pkcs1Bytes())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top