CmsAttachedSignature.GenerateSignatureAsync 方法

定义

使用指定的签名者信息对指定的输入数据进行签名,并创建附加的签名 CMS 消息。

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)

参数

data
IBuffer

要签名的输入数据。

signers

IIterable<CmsSignerInfo>

IEnumerable<CmsSignerInfo>

用于计算签名的签名者信息。

certificates

IIterable<Certificate>

IEnumerable<Certificate>

用于生成签名者证书链的证书列表。

返回

用于检索附加的签名 CMS 消息的异步操作。

属性

适用于