CmsAttachedSignature 类

定义

表示附加到已签名 CMS 消息的签名。

public ref class CmsAttachedSignature sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Cryptography.Certificates.ICmsAttachedSignatureFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CmsAttachedSignature final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Security.Cryptography.Certificates.ICmsAttachedSignatureFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class CmsAttachedSignature final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Cryptography.Certificates.ICmsAttachedSignatureFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CmsAttachedSignature
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Security.Cryptography.Certificates.ICmsAttachedSignatureFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CmsAttachedSignature
function CmsAttachedSignature(inputBlob)
Public NotInheritable Class CmsAttachedSignature
继承
Object Platform::Object IInspectable CmsAttachedSignature
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

构造函数

CmsAttachedSignature(IBuffer)

为指定的签名 CMS 消息创建 CmsAttachedSignature 类的新实例。

属性

Certificates

获取用于签名者证书的链构建的证书列表。

Content

获取已签名 CMS 消息的内容。

Signers

获取用于创建或验证签名的签名者列表。

方法

GenerateSignatureAsync(IBuffer, IIterable<CmsSignerInfo>, IIterable<Certificate>)

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

VerifySignature()

验证签名的 CMS 消息中包含的签名。

适用于