RFR: 8377506: Implementation of PEM Encodings of Cryptographic Objects [v2]
Anthony Scarpino
ascarpino at openjdk.org
Fri Feb 20 01:32:39 UTC 2026
> Please review the finalized PEM API at https://openjdk.org/jeps/8360563. The most significant changes from the second preview, JEP 524 (https://openjdk.org/jeps/524), include:
>
> - `PEM` is changed from a record to a class, with content stored in binary form and data defensively copied.
> - `DEREncodable` 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` indicates failures during cryptographic processing at runtime.
>
> thanks
Anthony Scarpino has updated the pull request incrementally with one additional commit since the last revision:
review comments
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/29640/files
- new: https://git.openjdk.org/jdk/pull/29640/files/aba9622c..9697afd7
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=29640&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=29640&range=00-01
Stats: 45 lines in 6 files changed: 5 ins; 2 del; 38 mod
Patch: https://git.openjdk.org/jdk/pull/29640.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29640/head:pull/29640
PR: https://git.openjdk.org/jdk/pull/29640
More information about the core-libs-dev
mailing list