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

Anthony Scarpino ascarpino at openjdk.org
Fri Nov 14 21:11:34 UTC 2025


On Mon, 8 Sep 2025 15:42:13 GMT, Anthony Scarpino <ascarpino at openjdk.org> wrote:

> Hi
> 
> Please review the [Second Preview](https://openjdk.org/jeps/8360563) for the PEM API.  The most significant changes from [JEP 470](https://openjdk.org/jeps/470) are:
> 
> - Renamed the name of `PEMRecord` class to `PEM`.
> - Revised the new `encryptKey` methods of the `EncryptedPrivateKeyInfo` class to accept `DEREncodable` objects rather than just `PrivateKey` objects so that cryptographic objects with public keys, i.e., `KeyPair` and `PKCS8EncodedKeySpec`, can also be encrypted.
> - Enhanced the `PEMEncoder` and `PEMDecoder` classes to support the encryption and decryption of `KeyPair` and `PKCS8EncodedKeySpec` objects.
> 
> thanks
> 
> Tony

This pull request has now been integrated.

Changeset: ad3dfaf1
Author:    Anthony Scarpino <ascarpino at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ad3dfaf1fc483bb2bfd5c26d76c43b8f69454cbd
Stats:     1967 lines in 23 files changed: 1044 ins; 475 del; 448 mod

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

Reviewed-by: weijun, mullan

-------------

PR: https://git.openjdk.org/jdk/pull/27147


More information about the security-dev mailing list