code: @Override
      protected CBORObject EncodeCBORObject() throws CoseException {
          sign();
          
          CBORObject obj = CBORObject.NewArray();
          
          obj.Add(rgbProtected);
          obj.Add(objUnprotected);
          if (emitContent) obj.Add(rgbContent);
          else obj.Add(null);
          CBORObject signers = CBORObject.NewArray();
          obj.Add(signers);
          
          for (Signer r : signerList) {
              signers.Add(r.EncodeToCBORObject());
          }
          
          return obj;
      }
docs: Internal function used to create a serialization of a COSE_Sign message
  
  @return CBOR object which can be encoded.
  @throws CoseException Errors generated by the COSE module