private static Collection<List<?>> alternativeNameArrayToList(Object[][] altNameArray) {
        if (altNameArray == null) {
            return null;
        }

        Collection<List<?>> coll = new ArrayList<>(altNameArray.length);
        for (Object[] objects : altNameArray) {
            coll.add(Collections.unmodifiableList(Arrays.asList(objects)));
        }

        return Collections.unmodifiableCollection(coll);
    }
An implementation of {@link X509Certificate} based on BoringSSL.
common/src/main/java/org/conscrypt/OpenSSLX509Certificate.java