IOpcDigitalSignature interface
Represents a package digital signature.
When to implement
Never. Custom implementations of this interface are not supported.
Members
The IOpcDigitalSignature interface inherits from the IUnknown interface. IOpcDigitalSignature also has these types of members:
Methods
The IOpcDigitalSignature interface has these methods.
| Method | Description |
|---|---|
| GetCanonicalizationMethod |
Gets the canonicalization method that was applied to the SignedInfo element of the serialized signature. |
| GetCertificateEnumerator |
Gets an enumerator of certificates that are used in the signature. |
| GetCustomObjectEnumerator |
Gets an enumerator of IOpcSignatureCustomObject interface pointers that represent application-specific Object elements in the signature markup. |
| GetCustomReferenceEnumerator |
Gets an enumerator of the IOpcSignatureReference interface pointers that represent references to application-specific XML elements that have been signed. |
| GetNamespaces |
Gets the prefix and namespace mapping of the Signature element of the signature markup. |
| GetPackageObjectReference |
Gets an IOpcSignatureReference interface pointer that represents the reference to the package-specific Object element that has been signed. |
| GetSignatureId |
Gets the value of the Id attribute from the Signature element of the signature markup. |
| GetSignatureMethod |
Gets the signature method used to calculate the value in the SignatureValue element of the signature markup. |
| GetSignaturePartName |
Gets the part name of the part that contains the signature markup. |
| GetSignaturePartReferenceEnumerator |
Gets an enumerator of IOpcSignaturePartReference interface pointers, which represent references to parts that have been signed. |
| GetSignatureRelationshipReferenceEnumerator |
Gets an enumerator of IOpcSignatureRelationshipReference interface pointers, which represent references to relationships that have been signed. |
| GetSignatureValue |
Gets the decoded value in the SignatureValue element of the signature markup. |
| GetSignatureXml |
Gets the signature markup. |
| GetSigningTime |
Gets a string that indicates the time at which the signature was generated. |
| 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
|
Minimum supported client | Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
See also
- Packaging Digital Signature Interfaces
- Overviews
- Digital Signatures Overview
- Getting Started with the Packaging API
- Packaging API Programming Guide
- Reference
- IOpcDigitalSignatureEnumerator
- IOpcDigitalSignatureManager
- IOpcSigningOptions
- OPC_CANONICALIZATION_METHOD
- OPC_SIGNATURE_TIME_FORMAT
- Core Packaging Interfaces
- Packaging Interfaces
- Packaging API Reference
- Packaging API Samples