RFR: 8298420: PEM API: Implementation (Preview) [v2]

Anthony Scarpino ascarpino at openjdk.org
Wed Jul 31 23:01:37 UTC 2024


On Mon, 29 Jul 2024 22:58:04 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> What you are describing is why the encoder accepts EncryptedPrivateKeyInfo.  These more complicated configurations I left to EncryptedPrivateKeyInfo as the PEM classes are not trying to replace all the functionality of EncryptedPrivateKeyInfo or the other classes, just simplify the common cases and the PEM construction.
>> PEMDecoder has a factory method because I saw that as a more common case for important into a HSM.
>
> I see.

I think I see what you were first saying.  Cipher doesn't need to be a class variable.

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

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



More information about the security-dev mailing list