Skip to content

Latest commit

 

History

History
92 lines (66 loc) · 3.59 KB

nf-xpsdigitalsignature-ixpssigningoptions-setdigestmethod.md

File metadata and controls

92 lines (66 loc) · 3.59 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:xpsdigitalsignature.IXpsSigningOptions.SetDigestMethod
IXpsSigningOptions::SetDigestMethod (xpsdigitalsignature.h)
Sets the URI of the digest method.
IXpsSigningOptions interface [XPS Documents and Packaging]
SetDigestMethod method
IXpsSigningOptions.SetDigestMethod
IXpsSigningOptions::SetDigestMethod
SetDigestMethod
SetDigestMethod method [XPS Documents and Packaging]
SetDigestMethod method [XPS Documents and Packaging]
IXpsSigningOptions interface
xps.ixpssigningoptions_setdigestmethod
xpsdigitalsignature/IXpsSigningOptions::SetDigestMethod
xps\ixpssigningoptions_setdigestmethod.htm
xps
d9f72cc4-38b2-4a91-8813-183483d47986
12/05/2018
IXpsSigningOptions interface [XPS Documents and Packaging],SetDigestMethod method, IXpsSigningOptions.SetDigestMethod, IXpsSigningOptions::SetDigestMethod, SetDigestMethod, SetDigestMethod method [XPS Documents and Packaging], SetDigestMethod method [XPS Documents and Packaging],IXpsSigningOptions interface, xps.ixpssigningoptions_setdigestmethod, xpsdigitalsignature/IXpsSigningOptions::SetDigestMethod
xpsdigitalsignature.h
Windows
Windows 7 [desktop apps only]
Windows Server 2008 R2 [desktop apps only]
XpsDigitalSignature.idl
Windows
19H1
IXpsSigningOptions::SetDigestMethod
xpsdigitalsignature/IXpsSigningOptions::SetDigestMethod
c++
APIRef
kbSyntax
COM
xpsdigitalsignature.h
IXpsSigningOptions.SetDigestMethod

IXpsSigningOptions::SetDigestMethod

-description

Sets the URI of the digest method.

-parameters

-param digestMethod [in]

The URI of the digest method.

This parameter must refer to the URI of a valid digest method. The following digest methods have been tested in Windows 7:

-returns

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.

-remarks

The digest method must be set before signing.

When a new instance of this interface is returned by IXpsSignatureManager::CreateSigningOptions, the SignatureMethod and DigestMethod properties are not initialized. They must be initialized before the new interface can be used as a parameter of the Sign method.

Sets the string that identifies the URI of the algorithm that is used to digest the parts, relationships, and signature references. The following is an example of a valid URI: http://www.w3.org/2000/09/xmldsig#sha1.

The signing certificate, signature method, and digest method must be compatible with one another.

-see-also

Cryptography Functions

IOpcSigningOptions

IXpsSigningOptions

XML Paper Specification