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

Weijun Wang weijun at openjdk.java.net
Tue Feb 15 15:32:21 UTC 2022


On Tue, 15 Feb 2022 15:21:08 GMT, Michael Osipov <duke at openjdk.java.net> wrote:

>> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   string at 4th place
>
> test/jdk/sun/security/x509/OtherName/Parse.java line 89:
> 
>> 87:         int found = 0;
>> 88:         for (var san : x.getSubjectAlternativeNames()) {
>> 89:             if (san.size() == 4) {
> 
> Make it `>=` if this is going to change in the future..

OK, but this is always implementation-specific. Precisely, it's a "may" so I should not check the count.

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

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


More information about the security-dev mailing list