This is an example of how to sign a document with the XaDes API