RFR: 8360564: Implement JEP 524: PEM Encodings of Cryptographic Objects (Second Preview) [v7]

Anthony Scarpino ascarpino at openjdk.org
Wed Oct 22 16:33:37 UTC 2025


On Wed, 22 Oct 2025 12:42:56 GMT, Sean Mullan <mullan at openjdk.org> wrote:

>> @wangweij is correct, `generateEncoding()` is setting the instance variable `encodedKey`.    A finally-block is likely necessary if an exception happens after `privateKeyMaterial` is set in `generateEncoding()`
>
> Ok, that could be fixed by creating another method that just does the encoding (and change `generateEncoding` to call that), but maybe we can fix that later.

There are generic changes to PKCS8Key outside of PEM that I'd like to do, I can look at it then.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27147#discussion_r2452669136


More information about the security-dev mailing list