IOpcSigningOptions::GetCertificateSet method

Gets an IOpcCertificateSet interface pointer.

Syntax


HRESULT GetCertificateSet(
  [out, retval] IOpcCertificateSet **certificateSet
);

Parameters

certificateSet [out, retval]

An IOpcCertificateSet interface pointer.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_POINTER

The certificateSet parameter is NULL.

 

Remarks

This method gets a set that provides methods enabling the addition and removal of certificates from a certificate chain that will be associated with the signature when it is generated.

Do not include the certificate use to generate the signature in this set. This certificate, the signer certificate, is required for signature generation. To generate the signature, call the IOpcDigitalSignatureManager::Sign method with the certificate parameter value set to a pointer to the signer certificate.

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 only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Msopc.h

IDL

OpcDigitalSignature.idl

See also

IOpcSigningOptions
Overviews
Getting Started with the Packaging API
Packaging API Programming Guide
Reference
IOpcDigitalSignatureManager
Core Packaging Interfaces
Packaging Digital Signature Interfaces
Packaging Interfaces
Packaging API Reference
Packaging API Samples

 

 

Community Additions

ADD
Show: