RFR: 8296742: Illegal X509 Extension should not be created [v8]
Sean Mullan
mullan at openjdk.org
Tue Nov 22 22:17:11 UTC 2022
On Tue, 22 Nov 2022 20:43:37 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> src/java.base/share/classes/sun/security/x509/SubjectKeyIdentifierExtension.java line 76:
>>
>>> 74: */
>>> 75: public SubjectKeyIdentifierExtension(byte[] octetString)
>>> 76: throws IOException {
>>
>> Do you want to change the `KeyIdentifer` ctor to check for null instead of letting it throw NPE?
>
> I'll let it throw NPE. As long as there's no way to create a `KeyIdentifer` with a null array inside, I'm not eager to change the exception type.
Ok.
-------------
PR: https://git.openjdk.org/jdk/pull/11137
More information about the security-dev
mailing list