RFR: 8298420: Implement JEP 470: PEM Encodings of Cryptographic Objects (Preview) [v24]

ExE Boss duke at openjdk.org
Mon Aug 18 20:08:15 UTC 2025


On Tue, 27 May 2025 23:00:59 GMT, Anthony Scarpino <ascarpino at openjdk.org> wrote:

>> Hi all,
>> 
>> I need a code review of the PEM API.  Privacy-Enhanced Mail (PEM) is a format for encoding and decoding cryptographic keys and certificates.  It will be integrated into JDK25 as a Preview Feature.  Preview features does not permanently define the API and it is subject to change in future releases until it is finalized.
>> 
>> Details about this change can be seen at [PEM API JEP](https://bugs.openjdk.org/browse/JDK-8300911).
>> 
>> Thanks
>> 
>> Tony
>
> Anthony Scarpino has updated the pull request incrementally with one additional commit since the last revision:
> 
>   PEM reading tweak

src/java.base/share/classes/javax/crypto/EncryptedPrivateKeyInfo.java line 63:

> 61:  */
> 62: 
> 63: public non-sealed class EncryptedPrivateKeyInfo implements DEREncodable {

Note that the **JEP**s[^1][^2] list `EncryptedPrivateKeyInfo` as:

public final class EncryptedPrivateKeyInfo { ... }


[^1]: [JEP 470: PEM Encodings of Cryptographic Objects (Preview) § DER‑encodable cryptographic objects]( https://openjdk.org/jeps/470#DER-encodable-cryptographic-objects )
[^2]: [JEP draft: PEM Encodings of Cryptographic Objects (Second Preview) § DER‑encodable cryptographic objects]( https://openjdk.org/jeps/8360563#DER-encodable-cryptographic-objects )

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17543#discussion_r2283333975


More information about the security-dev mailing list