Share via


CmsAttachedSignature.GenerateSignatureAsync Method

Definition

Signs the specified input data using the specified signer information and creates an attached signed CMS message.

public:
 static IAsyncOperation<IBuffer ^> ^ GenerateSignatureAsync(IBuffer ^ data, IIterable<CmsSignerInfo ^> ^ signers, IIterable<Certificate ^> ^ certificates);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IBuffer> GenerateSignatureAsync(IBuffer const& data, IIterable<CmsSignerInfo> const& signers, IIterable<Certificate> const& certificates);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IBuffer> GenerateSignatureAsync(IBuffer data, IEnumerable<CmsSignerInfo> signers, IEnumerable<Certificate> certificates);
function generateSignatureAsync(data, signers, certificates)
Public Shared Function GenerateSignatureAsync (data As IBuffer, signers As IEnumerable(Of CmsSignerInfo), certificates As IEnumerable(Of Certificate)) As IAsyncOperation(Of IBuffer)

Parameters

data
IBuffer

The input data to be signed.

signers

IIterable<CmsSignerInfo>

IEnumerable<CmsSignerInfo>

The signer information used to compute the signature.

certificates

IIterable<Certificate>

IEnumerable<Certificate>

The list of certificates to build the chain for the signer certificates.

Returns

An asynchronous operation to retrieve the attached signed CMS message.

Attributes

Applies to