RFR: 8298420: PEM API: Implementation (Preview) [v9]
Weijun Wang
weijun at openjdk.org
Thu Oct 31 01:47:32 UTC 2024
On Thu, 31 Oct 2024 00:09:19 GMT, Anthony Scarpino <ascarpino at openjdk.org> wrote:
>> src/java.base/share/classes/javax/crypto/EncryptedPrivateKeyInfo.java line 339:
>>
>>> 337: * @throws IllegalArgumentException when an argument causes an
>>> 338: * initialization error.
>>> 339: * @throws SecurityException on a cryptographic errors.
>>
>> Oh, I didn't notice this before. Have we decided to repurpose `SecurityException` for this usage now that there will be no more Security Manager?
>
> I'm not sure if it was exclusively a Security Manager exception, but @seanjmullan had said previously that `SecurityException` was used elsewhere.
It was used when `JarInputStream::read` encountered a wrong hash or signature. But, it was mainly used for permission violation.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17543#discussion_r1823671715
More information about the security-dev
mailing list