On Mon, 29 Jul 2024 22:58:04 GMT, Weijun Wang <wei...@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

Reply via email to