[This feature was implemented for MSXML 5.0 for Microsoft Office Applications. XML digital signatures are not supported in MXSML 6.0 and later.]
IXMLDigitalSignature interface supports the following properties and methods to allow application developers to sign XML documents or verify signatures.
|signature||This read/write property allows you to get or set a signature template or object to be processed by the |
|store||This read/write property allows you to get or set a certificate store object.|
|createKeyFromCSP||Retrieves a key handle from a key container within a specified cryptographic service provider (CSP). This key handle is used to access the private key used for signing or the public key for signature verification.|
|createKeyFromHMACSecret||Extracts and returns a key handle from a base-64 encoded secret value used in the HMAC algorithm. This key handle is used to access a key that can be used for both signing and signature verification.|
|createKeyFromNode||Creates and returns a key handle based on the information contained in the |
|createSAXProxy||Creates and returns a SAX proxy object. The |
|setReferenceData||Assigns a new data source to a specified |
|sign||Signs data referenced in a |
|verify||Verifies the signature of data referenced in the |
IXMLDigitalSignature interface typically involves the following tasks.
Create an XML DOM object, and load it with a digital signature as represented by a
<ds:Signature>element belonging to the
IXMLDigitalSignatureobject, and assign the XML DOM object to its
setReferenceData, and possibly
createSAXProxy, to set or replace the data source referenced in the signature object.
Create a cryptographic key using one of the key creation methods. See XML Digital Signature Methods for more information.
IXMLDigitalSignatureobject to process the signature on the XML document or fragment.
setReferenceDatato assign a different data source on the signature object, and repeat Step 5 to sign or verify the new data with the existing signature information.
The implementation of the
IXMLDigitalSignature interface conforms to the XML-Signature Syntax and Processing W3C Recommendation 12 February 2002.
Header and IDL files: msxml2.h, msxml2.idl
Version-Dependent ProgID: Msxml2.MXDigitalSignature.5.0
Version-Dependent CLSID: 88d969e5-f192-11d4-a65f-0040963251e5, "MXDigitalSignature50"
MSXML 5.0 for Microsoft Office Applications and later