CmsDetachedSignature
CmsDetachedSignature
CmsDetachedSignature
CmsDetachedSignature
Class
Definition
Represents a detached signature for a signed CMS message.
public : sealed class CmsDetachedSignature : ICmsDetachedSignaturepublic sealed class CmsDetachedSignature : ICmsDetachedSignaturePublic NotInheritable Class CmsDetachedSignature Implements ICmsDetachedSignature// 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
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)// 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.
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(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 )// You can use this method in JavaScript.
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.
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 )// You can use this method in JavaScript.
The original input stream for the signed CMS message.
An asynchronous operation to retrieve the result of the signature validation operation.