-
CSR
-
Resolution: Unresolved
-
P4
-
None
-
minimal
-
Java API
-
SE
Summary
Updates to the PEM API and javax.crypto.EncryptedPrivateKeyInfo for JEP 524: PEM Encodings of Cryptographic Objects (Second Preview).
Problem
Enhancements to the PEM API and EncryptedPrivateKeyInfo to support KeyPair and PKCS8EncodedKeySpec require new methods and specification updates. The renaming of PEMRecord to PEM and general changes to exception handling are also included.
Solution
PEMRecordhas been renamed toPEM, and a new decode method has been added to retrieve the decoded Base64 content.- In
EncryptedPrivateKeyInfo, the three overloadedencryptKeymethods have been renamed to encrypt and now support encrypting bothKeyPairandPKCS8EncodedKeySpec. Two overloadedgetKeyPairmethods have been added. After these change,PEMEncoderandPEMDecoderautomatically supports encoding and decoding of these new types. - Exception handling across various APIs has been updated.
- Additional updates have
Specification
see attached
- csr of
-
JDK-8360564 Implement JEP 524: PEM Encodings of Cryptographic Objects (Second Preview)
-
- Open
-