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

Sean Mullan mullan at openjdk.org
Wed May 7 16:49:34 UTC 2025


On Tue, 30 Jul 2024 21:06:06 GMT, Anthony Scarpino <ascarpino at openjdk.org> wrote:

>> I'm afraid that someone will overwrite the java.security file and remove that property. Then wonder what will happen and if the error message is clear.
>
> I added the exception

`SecretKeyFactory.getInstance()` will throw `NullPointerException` if the property is undefined. You would need to add a try/catch block for NPE specifically, which you don't have right now.

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

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


More information about the security-dev mailing list