CmsDetachedSignature CmsDetachedSignature CmsDetachedSignature CmsDetachedSignature Class

Definition

Represents a detached signature for a signed CMS message.

public sealed class CmsDetachedSignaturepublic sealed class CmsDetachedSignaturePublic NotInheritable Class CmsDetachedSignaturepublic sealed class CmsDetachedSignature
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 New(IBuffer inputBlob)Public Sub New(inputBlob As IBuffer)public CmsDetachedSignature(IBuffer inputBlob)
Parameters
inputBlob
IBuffer IBuffer IBuffer IBuffer

A signed CMS message blob.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 IVectorView<Certificate> Certificates { get; }Public ReadOnly Property Certificates As IVectorView<Certificate>public IVectorView<Certificate> Certificates { get; }
Value

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Signers Signers Signers Signers

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

public IVectorView<CmsSignerInfo> Signers { get; }public IVectorView<CmsSignerInfo> Signers { get; }Public ReadOnly Property Signers As IVectorView<CmsSignerInfo>public IVectorView<CmsSignerInfo> Signers { get; }
Value

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

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

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

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, IIterable<CmsSignerInfo> signers, IIterable<Certificate> certificates)Public Static Function GenerateSignatureAsync(data As IInputStream, signers As IIterable<CmsSignerInfo>, certificates As IIterable<Certificate>) As IAsyncOperation( Of IBuffer )public static IAsyncOperation<IBuffer> GenerateSignatureAsync(IInputStream data, IIterable<CmsSignerInfo> signers, IIterable<Certificate> certificates)
Parameters
data
IInputStream IInputStream IInputStream IInputStream

The input data to be signed.

signers

The signer information used to compute the signature.

certificates

The list of certificates to build the chain for the signer certificates.

Returns

An asynchronous operation to retrieve the detached signed CMS message.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 )public IAsyncOperation<SignatureValidationResult> VerifySignatureAsync(IInputStream data)
Parameters
data
IInputStream IInputStream IInputStream IInputStream

The original input stream for the signed CMS message.

Returns

An asynchronous operation to retrieve the result of the signature validation operation.

Attributes
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)