On Mon, 9 Feb 2026 21:04:34 GMT, Anthony Scarpino <[email protected]> wrote:

> Please review the third preview of the PEM API at 
> https://openjdk.org/jeps/8376991. The most significant changes from the 
> second preview, JEP 524 (https://openjdk.org/jeps/524), include:
> 
> - The `PEM` class is now an ordinary class rather than a record. It adds 
> Binary-encoded content constructors and data is defensively copied.
> - The `DEREncodable` interface is renamed to `BinaryEncodable` to more 
> accurately reflect the binary data stored in PEM text.
> - In `EncryptedPrivateKeyInfo`, the `encrypt` methods now accept 
> `BinaryEncodable`, and the `getKey()` and `getKeyPair()` methods no longer 
> include a `Provider` parameter.
> - A new `CryptoException` class indicates failures in cryptographic 
> processing at runtime.
> 
> thanks
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

This pull request has now been integrated.

Changeset: e70e6913
Author:    Anthony Scarpino <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/e70e6913077190b4ffaff886ca9a5f91eed3f850
Stats:     1622 lines in 35 files changed: 757 ins; 334 del; 531 mod

8377506: Implement JEP 538: PEM Encodings of Cryptographic Objects (Third 
Preview)

Reviewed-by: weijun, mullan

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

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

Reply via email to