共用方式為


IXpsSignature interface

Represents a single digital signature.

When to implement

Never. Custom implementation of this interface is not supported.

Members

The IXpsSignature interface inherits from the IUnknown interface. IXpsSignature also has these types of members:

  • Methods

Methods

The IXpsSignature interface has these methods.

Method Description
GetCertificateEnumerator

Gets a pointer to an IOpcCertificateEnumerator interface, which enumerates the package certificates that are attached to the signature.

GetCustomObjectEnumerator

Gets a pointer to an IOpcSignatureCustomObjectEnumerator interface, which enumerates the custom objects of the signature.

GetCustomReferenceEnumerator

Gets a pointer to an IOpcSignatureReferenceEnumerator interface, which enumerates the custom references of the signature.

GetPolicy

Gets the XPS_SIGN_POLICY value that represents the signing policy used when the signature is created.

GetSignatureId

Gets the value of the Id attribute of the Signature element.

GetSignaturePartName

Gets the part name of the signature part.

GetSignatureValue

Gets the encrypted hash value of the signature.

GetSignatureXml

Gets the XML markup of the digital signature.

GetSigningTime

Gets the date and time of signature creation.

GetSigningTimeFormat

Gets the format of the signing time.

SetSignatureXml

Sets the XML markup of the digital signature.

Verify

Verifies the signature against a specified X.509 certificate.

 

Remarks

This interface is linked to the signature manager from which it was instantiated and it cannot exist independently.

An IXpsSignature interface may represent a signature that is not XPS compliant. For example, it could represent a signature that includes only custom parts, which is not allowed by the XML Paper Specification.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Xpsdigitalsignature.h

IDL

XpsDigitalSignature.idl

See also

IOpcCertificateEnumerator

IOpcSignatureCustomObjectSet

IOpcSignatureReferenceEnumerator

XPS_SIGN_POLICY

Interfaces

XML Paper Specification