public List<String> getExtensionOIds() {
        return getExtensions()
                .map(extensions -> Arrays.stream(extensions.getExtensionOIDs())
                        .map(ASN1ObjectIdentifier::getId)
                        .toList())
                .orElse(List.of());

    }
@return If basic constraints extension is present: returns true if CA cert, false otherwise. Returns empty if the extension is not present.
security-utils/src/main/java/com/yahoo/security/Pkcs10Csr.java