Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8367431

Implement JEP 524: PEM Encodings of Cryptographic Objects (Second Preview)

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • security-libs
    • None
    • minimal
    • Java API
    • SE

      Summary

      Updates to the PEM API and javax.crypto.EncryptedPrivateKeyInfo for JEP 524: PEM Encodings of Cryptographic Objects (Second Preview).

      Problem

      Enhancements to the PEM API and EncryptedPrivateKeyInfo to support KeyPair and PKCS8EncodedKeySpec require new methods and specification updates. The renaming of PEMRecord to PEM and general changes to exception handling are also included.

      Solution

      1. PEMRecord has been renamed to PEM, and a new decode method has been added to retrieve the decoded Base64 content.
      2. In EncryptedPrivateKeyInfo, the three overloaded encryptKey methods have been renamed to encrypt and now support encrypting both KeyPair and PKCS8EncodedKeySpec. Two overloaded getKeyPair methods have been added. After these change, PEMEncoder and PEMDecoder automatically supports encoding and decoding of these new types.
      3. Exception handling across various APIs has been updated.
      4. Additional updates have

      Specification

      see attached

            ascarpino Anthony Scarpino
            ascarpino Anthony Scarpino
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: