Share via


CmsDetachedSignature.GenerateSignatureAsync Method

Definition

Signs the specified input data using the specified signer information and creates a detached signed CMS message.

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

Parameters

data
IInputStream

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 detached signed CMS message.

Attributes

Applies to