CmsAttachedSignature
CmsAttachedSignature
CmsAttachedSignature
CmsAttachedSignature
Class
Definition
Represents a signature attached to a signed CMS message.
public : sealed class CmsAttachedSignature : ICmsAttachedSignaturepublic sealed class CmsAttachedSignature : ICmsAttachedSignaturePublic NotInheritable Class CmsAttachedSignature Implements ICmsAttachedSignature// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
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 CmsAttachedSignature(IBuffer inputBlob)Public Sub New(inputBlob As IBuffer)// You can use this method in JavaScript.
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>// You can use this property in JavaScript.
- Value
- IVectorView<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate> IReadOnlyList<Certificate>
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[]// You can use this property in JavaScript.
- 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 IReadOnlyList<CmsSignerInfo> Signers { get; }Public ReadOnly Property Signers As IReadOnlyList<CmsSignerInfo>// You can use this property in JavaScript.
- Value
- IVectorView<CmsSignerInfo> IReadOnlyList<CmsSignerInfo> IReadOnlyList<CmsSignerInfo> IReadOnlyList<CmsSignerInfo>
The list of signers that are used for creating or verifying the signature.
Methods
GenerateSignatureAsync(IBuffer, IIterable, IIterable)
GenerateSignatureAsync(IBuffer, IIterable, IIterable)
GenerateSignatureAsync(IBuffer, IIterable, IIterable)
GenerateSignatureAsync(IBuffer, IIterable, IIterable)
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, IEnumerable<CmsSignerInfo> signers, IEnumerable<Certificate> certificates)Public Static Function GenerateSignatureAsync(data As IBuffer, signers As IEnumerable<CmsSignerInfo>, certificates As IEnumerable<Certificate>) As IAsyncOperation( Of IBuffer )// You can use this method in JavaScript.
- 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.
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 SignatureValidationResult// You can use this method in JavaScript.
The result of the signature verification operation.