@ 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 ; }
Internal function used to create a serialization of a COSE_Sign message