CmsDetachedSignature CmsDetachedSignature CmsDetachedSignature CmsDetachedSignature Class

Represents a detached signature for a signed CMS message.

Syntax

Declaration

public sealed class CmsDetachedSignaturepublic sealed class CmsDetachedSignaturePublic NotInheritable Class CmsDetachedSignaturepublic sealed class CmsDetachedSignature

Constructors summary

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

Properties summary

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

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

Methods summary

Signs the specified input data using the specified signer information and creates a detached signed CMS message.

Verifies a signed CMS message against the original streaming input.

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

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; }

    Property Value

    • 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 IVectorView<CmsSignerInfo> Signers { get; }Public ReadOnly Property Signers As IVectorView<CmsSignerInfo>public IVectorView<CmsSignerInfo> Signers { get; }

    Property Value

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

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

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

    Parameters

    Returns

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

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Security.Cryptography.Certificates.dll