SignatureProvider.SignXmlDsig Method
Used to sign the XMLDSIG template.
Note
|
|---|
| Signature providers are implemented exclusively in custom COM add-ins created in managed and unmanaged code and cannot be implemented in Microsoft Visual Basic for Applications (VBA). |
Syntax
expression.SignXmlDsig(QueryContinue, psigsetup, psiginfo, XmlDsigStream)
expression An expression that returns a SignatureProvider object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| QueryContinue | Required | IQueryContinue | Provides a way to query the host application for permission to continue the verification operation. |
| psigsetup | Required | SignatureSetup | Specifies configuration information about a signature line. |
| psiginfo | Required | SignatureInfo | Specifies information captured from the signing ceremony. |
| XmlDsigStream | Required | IStream | Represents a steam of data containing XML, which represents an XMLDSIG object. |
Remarks
XMLDSIG is a standards-based signature format (http://www.w3.org/TR/xmldsig-core/), verifiable by third parties. This is the default format for signatures in the Microsoft Office system.
Example
The following example, written in C#, shows the implementation of the SignXmlDsig method in a custom signature provider project.
| C# |
|---|
|
Note