private String asString(ASN1Primitive primitive) {
        if (primitive == null || primitive instanceof ASN1Null) {
            return "";
        }
        if (primitive instanceof ASN1String) {
            return ((ASN1String) primitive).getString();
        }
        if (primitive instanceof DERUTCTime) {
            return ((DERUTCTime) primitive).getAdjustedTime();
        }
        if (primitive instanceof DERGeneralizedTime) {
            return ((DERGeneralizedTime) primitive).getTime();
        }
        if (primitive instanceof ASN1ObjectIdentifier) {
            return switch (((ASN1ObjectIdentifier) primitive).getId()) {
                case "1.3.6.1.5.5.7.8.5" -> "xmppAddr";
                default -> primitive.toString();
            };
        }
        return primitive.toString();
    }
Creates a table that represents an ASN.1 encoded DER value.

This tag creates a HTML table, that consists of one or two columns and an unspecified number of rows. Each cell
can contain a nested table (of similar format).
xmppserver/src/main/java/org/jivesoftware/admin/ASN1DERTag.java