On Fri, 24 Oct 2025 19:06:33 GMT, Anthony Scarpino <[email protected]> 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 > > Anthony Scarpino has updated the pull request incrementally with one > additional commit since the last revision: > > more docs, remove runtimeexception src/java.base/share/classes/javax/crypto/EncryptedPrivateKeyInfo.java line 405: > 403: * @implNote The {@code jdk.epkcs8.defaultAlgorithm} security > property > 404: * defines the default encryption algorithm. The {@code > AlgorithmParameterSpec} > 405: * defaults are determined by the provider.* A star at the end of line. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/27147#discussion_r2462789551
