CmsAttachedSignature CmsAttachedSignature CmsAttachedSignature CmsAttachedSignature Class

Represents a signature attached to a signed CMS message.

Syntax

Declaration

public sealed class CmsAttachedSignaturepublic sealed class CmsAttachedSignaturePublic NotInheritable Class CmsAttachedSignaturepublic sealed class CmsAttachedSignature

Constructors summary

Creates a new instance of the CmsAttachedSignature 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 content of the signed CMS message.

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 an attached signed CMS message.

Verifies the signature contained in the signed CMS message.

Constructors

  • CmsAttachedSignature(IBuffer)
    CmsAttachedSignature(IBuffer)
    CmsAttachedSignature(IBuffer)
    CmsAttachedSignature(IBuffer)

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

    public CmsAttachedSignature(IBuffer inputBlob)public New(IBuffer inputBlob)Public Sub New(inputBlob As IBuffer)public CmsAttachedSignature(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.

  • Content
    Content
    Content
    Content

    Gets the content of the signed CMS message.

    public byte[] Content { get; }public byte[] Content { get; }Public ReadOnly Property Content As byte[]public byte[] Content { get; }

    Property Value

    • byte[]
      byte[]
      byte[]
      byte[]

      The content of the signed CMS message.

  • 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(IBuffer, IIterable<CmsSignerInfo>, IIterable<Certificate>)
    GenerateSignatureAsync(IBuffer, IIterable<CmsSignerInfo>, IIterable<Certificate>)
    GenerateSignatureAsync(IBuffer, IIterable<CmsSignerInfo>, IIterable<Certificate>)
    GenerateSignatureAsync(IBuffer, IIterable<CmsSignerInfo>, IIterable<Certificate>)

    Signs the specified input data using the specified signer information and creates an attached signed CMS message.

    public static IAsyncOperation<IBuffer> GenerateSignatureAsync(IBuffer data, IIterable<CmsSignerInfo> signers, IIterable<Certificate> certificates)public static IAsyncOperation<IBuffer> GenerateSignatureAsync(IBuffer data, IIterable<CmsSignerInfo> signers, IIterable<Certificate> certificates)Public Static Function GenerateSignatureAsync(data As IBuffer, signers As IIterable<CmsSignerInfo>, certificates As IIterable<Certificate>) As IAsyncOperation( Of IBuffer )public static IAsyncOperation<IBuffer> GenerateSignatureAsync(IBuffer data, IIterable<CmsSignerInfo> signers, IIterable<Certificate> certificates)

    Parameters

    • data

      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 attached signed CMS message.

  • VerifySignature()
    VerifySignature()
    VerifySignature()
    VerifySignature()

    Verifies the signature contained in the signed CMS message.

    public SignatureValidationResult VerifySignature()public SignatureValidationResult VerifySignature()Public Function VerifySignature() As SignatureValidationResultpublic SignatureValidationResult VerifySignature()

    Returns

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