code: public boolean HasKeyOp(Integer that) {
          CBORObject thisObj = get(KeyKeys.Key_Ops);
          boolean result;
          if (that == null) {
              result = (thisObj == null);
          } else {
              result = false;
              if (thisObj.getType() == CBORType.Number) {
                  if (thisObj.AsInt32() == that) {
                      result = true;
                  }
              } else if (thisObj.getType() == CBORType.Array) {
                  for (int i = 0; i < thisObj.size(); i++) {
                      if ((thisObj.get(i).getType() == CBORType.Number) && (thisObj.get(i).AsInt32() == that)) {
                          result = true;
                          break;
                      }
                 }
              }
          }
          return result;
      }
docs: Compares the key's assigned key operations with the provided value, indicating if the provided
  value was found in the key operation values assigned to the key.
  
  @param that
  the integer operation value to attempt to find in the values provided by the key or
  {@code null} to check for no assignment.
  @return {@code true} if the current key has the provided value assigned, or {@code false}
  otherwise