共用方式為


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 訊息中包含的簽章。

適用於