On Thu, 31 Oct 2024 00:09:19 GMT, Anthony Scarpino <ascarp...@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