CmsDetachedSignature CmsDetachedSignature CmsDetachedSignature CmsDetachedSignature Class

Definition

Represents a detached signature for a signed CMS message.

public : sealed class CmsDetachedSignature : ICmsDetachedSignature
public sealed class CmsDetachedSignature : ICmsDetachedSignature
Public NotInheritable Class CmsDetachedSignature Implements ICmsDetachedSignature
var cmsDetachedSignature = new cmsDetachedSignature(inputBlob);
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

CmsDetachedSignature(IBuffer) CmsDetachedSignature(IBuffer) CmsDetachedSignature(IBuffer) CmsDetachedSignature(IBuffer)

Creates a new instance of the CmsDetachedSignature class for the specified signed CMS message.

public : CmsDetachedSignature(IBuffer inputBlob)
public CmsDetachedSignature(IBuffer inputBlob)
Public Sub New(inputBlob As IBuffer)
var cmsDetachedSignature = new cmsDetachedSignature(inputBlob);
Parameters
inputBlob
IBuffer IBuffer IBuffer IBuffer

A signed CMS message blob.

Properties

Certificates Certificates Certificates Certificates

Gets the list of certificates that are used for chain building for the signer certificate.

public : IVectorView<Certificate> Certificates { get; }
public IReadOnlyList<Certificate> Certificates { get; }
Public ReadOnly Property Certificates As IReadOnlyList<Certificate>
var iReadOnlyList = cmsDetachedSignature.certificates;
Value
IVectorView<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate>

The list of certificates that are used for chain building for the signer certificate.

Signers Signers Signers Signers

Gets the list of signers that are used for creating or verifying the signature.

public : IVectorView<CmsSignerInfo> Signers { get; }
public IReadOnlyList<CmsSignerInfo> Signers { get; }
Public ReadOnly Property Signers As IReadOnlyList<CmsSignerInfo>
var iReadOnlyList = cmsDetachedSignature.signers;
Value
IVectorView<CmsSignerInfo> IReadOnlyList<CmsSignerInfo> IReadOnlyList<CmsSignerInfo> IReadOnlyList<CmsSignerInfo>

The list of signers that are used for creating or verifying the signature.

Methods

GenerateSignatureAsync(IInputStream, IIterable, IIterable) GenerateSignatureAsync(IInputStream, IIterable, IIterable) GenerateSignatureAsync(IInputStream, IIterable, IIterable) GenerateSignatureAsync(IInputStream, IIterable, IIterable)

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)
public static IAsyncOperation<IBuffer> GenerateSignatureAsync(IInputStream data, IEnumerable<CmsSignerInfo> signers, IEnumerable<Certificate> certificates)
Public Static Function GenerateSignatureAsync(data As IInputStream, signers As IEnumerable<CmsSignerInfo>, certificates As IEnumerable<Certificate>) As IAsyncOperation( Of IBuffer )
Windows.Security.Cryptography.Certificates.CmsDetachedSignature.generateSignatureAsync(data, signers, certificates).done( /* Your success and error handlers */ );
Parameters
data
IInputStream IInputStream IInputStream IInputStream

The input data to be signed.

signers
IIterable<CmsSignerInfo> IEnumerable<CmsSignerInfo> IEnumerable<CmsSignerInfo> IEnumerable<CmsSignerInfo>

The signer information used to compute the signature.

certificates
IIterable<Certificate> IEnumerable<Certificate> IEnumerable<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.

VerifySignatureAsync(IInputStream) VerifySignatureAsync(IInputStream) VerifySignatureAsync(IInputStream) VerifySignatureAsync(IInputStream)

Verifies a signed CMS message against the original streaming input.

public : IAsyncOperation<SignatureValidationResult> VerifySignatureAsync(IInputStream data)
public IAsyncOperation<SignatureValidationResult> VerifySignatureAsync(IInputStream data)
Public Function VerifySignatureAsync(data As IInputStream) As IAsyncOperation( Of SignatureValidationResult )
Windows.Security.Cryptography.Certificates.CmsDetachedSignature.verifySignatureAsync(data).done( /* Your success and error handlers */ );
Parameters
data
IInputStream IInputStream IInputStream IInputStream

The original input stream for the signed CMS message.

Returns