IOpcDigitalSignature interface (msopc.h)

Represents a package digital signature.

Inheritance

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

Methods

The IOpcDigitalSignature interface has these methods.

 
IOpcDigitalSignature::GetCanonicalizationMethod

Gets the canonicalization method that was applied to the SignedInfo element of the serialized signature.
IOpcDigitalSignature::GetCertificateEnumerator

Gets an enumerator of certificates that are used in the signature.
IOpcDigitalSignature::GetCustomObjectEnumerator

Gets an enumerator of IOpcSignatureCustomObject interface pointers that represent application-specific Object elements in the signature markup.
IOpcDigitalSignature::GetCustomReferenceEnumerator

Gets an enumerator of the IOpcSignatureReference interface pointers that represent references to application-specific XML elements that have been signed.
IOpcDigitalSignature::GetNamespaces

Gets the prefix and namespace mapping of the Signature element of the signature markup.
IOpcDigitalSignature::GetPackageObjectReference

Gets an IOpcSignatureReference interface pointer that represents the reference to the package-specific Object element that has been signed.
IOpcDigitalSignature::GetSignatureId

Gets the value of the Id attribute from the Signature element of the signature markup.
IOpcDigitalSignature::GetSignatureMethod

Gets the signature method used to calculate the value in the SignatureValue element of the signature markup.
IOpcDigitalSignature::GetSignaturePartName

Gets the part name of the part that contains the signature markup.
IOpcDigitalSignature::GetSignaturePartReferenceEnumerator

Gets an enumerator of IOpcSignaturePartReference interface pointers, which represent references to parts that have been signed.
IOpcDigitalSignature::GetSignatureRelationshipReferenceEnumerator

Gets an enumerator of IOpcSignatureRelationshipReference interface pointers, which represent references to relationships that have been signed.
IOpcDigitalSignature::GetSignatureValue

Gets the decoded value in the SignatureValue element of the signature markup.
IOpcDigitalSignature::GetSignatureXml

Gets the signature markup.
IOpcDigitalSignature::GetSigningTime

Gets a string that indicates the time at which the signature was generated.
IOpcDigitalSignature::GetTimeFormat

Gets the format of the string returned by the GetSigningTime method.

Remarks

To generate a signature and create an IOpcDigitalSignature interface pointer, call the IOpcDigitalSignatureManager::Sign method.

To access generated signature by using an IOpcDigitalSignature interface pointer, call the IOpcDigitalSignatureEnumerator::GetCurrent method.

When a signature is generated, this information is serialized in the XML markup of the signature (signature markup). The signature markup that results is stored in a signature part.

Thread Safety

Packaging objects are not thread-safe.

For more information, see the Getting Started with the Packaging API.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header msopc.h

See also

Core Packaging Interfaces

Digital Signatures Overview

Getting Started with the Packaging API

IOpcDigitalSignatureEnumerator

IOpcDigitalSignatureManager

IOpcSigningOptions

OPC_CANONICALIZATION_METHOD

OPC_SIGNATURE_TIME_FORMAT

Overviews

Packaging API Programming Guide

Packaging API Reference

Packaging API Samples

Packaging Digital Signature Interfaces

Packaging Interfaces

Reference