RFR: 8277976: Break up SEQUENCE in X509Certificate::getSubjectAlternativeNames and X509Certificate::getIssuerAlternativeNames in otherName [v5]

Michael Osipov duke at openjdk.java.net
Fri Feb 18 06:58:53 UTC 2022


On Thu, 17 Feb 2022 20:41:50 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> @wangweij So you have selected to really swallow the exception here?
>
> Yes. I don't want to let the method fail. Since `instanceof String` should be called anyway the caller can decide how to fail.

So you leave it to the user to read the ASN.1 value and fail if the encoding is incorrect instead of throwing a `Ceritificate..Exception` although other GeneralNames do?

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

PR: https://git.openjdk.java.net/jdk/pull/7167



More information about the security-dev mailing list