Skip to content

class SignMessage

Jim Schaad edited this page Sep 1, 2016 · 2 revisions

The SignMessage class is used to implement the COSE_Sign structure. This structure allows for one or more signatures to be applied a a message payload.

This class inherits from the Message and Attribute classes.

Functions

  • AddSigner(Signer signedBy) - Add a new signer to the SignMessage being created.
  • getSigner(int iSigner) - return the i-th signer in the message.
  • getSignerCount() - return the number of signers on the message.
  • getSignerList() - return the list of signers.
  • sign() - create signatures for every signer on the message which does not have one.
  • validate(Signer signerToUse) - attempt to validate the signature on the message using signerToUse as the specific signer object. The signerToUse object must be in the list of signers on the message.

Examples

  • Create a signed message
  • Validate a signed message
  • Create a signed message with three signatures
  • Validate a signed message w/ multiple signers

See Also

Signer, Message, Attribute

Clone this wiki locally