docs: public static byte[] encodeGSSExportName(String oid, String name) {
          try {
              byte[] oid_arr = encodeOID(oid);
              int oid_len = oid_arr.length;
              byte[] name_arr = name.getBytes("UTF-8");
              int name_len = name_arr.length;
  
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              // token id at 0
              baos.write(ASN_TAG_NT_EXPORTED_NAME1);
              baos.write(ASN_TAG_NT_EXPORTED_NAME2);
  
              // write the two length bytes
              baos.write((byte) (oid_len & 0xFF00) >> 8);
              baos.write((byte) (oid_len & 0x00FF));
  
              // oid at 2
              baos.write(oid_arr);
  
              // name length at n
              baos.write((byte) (name_len & 0xFF000000) >> 24);
              baos.write((byte) (name_len & 0x00FF0000) >> 16);
              baos.write((byte) (name_len & 0x0000FF00) >> 8);
              baos.write((byte) (name_len & 0x000000FF));
  
              // name at n+4
              baos.write(name_arr);
              return baos.toByteArray();
          } catch (Exception ex) {
  //            Tr.debug(tc, "Could not encode : " + id);
          }
          return null;
      }