Class SignedData
A CMS SignedData structure (RFC 5652 §5). Contains the digest algorithms, encapsulated content, certificates, and signer information.
Inherited Members
Namespace: DRIT.Mail.Rfc.Crypto.Cms
Assembly: DRIT.Mail.dll
Syntax
public sealed class SignedData
Constructors
View SourceSignedData(int, IReadOnlyList<AlgorithmIdentifier>, EncapsulatedContentInfo, IReadOnlyList<byte[]>, IReadOnlyList<SignerInfo>)
Initializes a new instance of the SignedData class.
Declaration
public SignedData(int version, IReadOnlyList<AlgorithmIdentifier> digestAlgorithms, EncapsulatedContentInfo encapContentInfo, IReadOnlyList<byte[]> certificates, IReadOnlyList<SignerInfo> signerInfos)
Parameters
| Type | Name | Description |
|---|---|---|
| int | version | |
| IReadOnlyList<AlgorithmIdentifier> | digestAlgorithms | |
| EncapsulatedContentInfo | encapContentInfo | |
| IReadOnlyList<byte[]> | certificates | |
| IReadOnlyList<SignerInfo> | signerInfos |
Properties
View SourceCertificates
Gets the raw DER certificate bytes embedded in the SignedData.
Declaration
public IReadOnlyList<byte[]> Certificates { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<byte[]> |
DigestAlgorithms
Gets the set of digest algorithms used by the signers.
Declaration
public IReadOnlyList<AlgorithmIdentifier> DigestAlgorithms { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<AlgorithmIdentifier> |
EncapContentInfo
Gets the encapsulated content info.
Declaration
public EncapsulatedContentInfo EncapContentInfo { get; }
Property Value
| Type | Description |
|---|---|
| EncapsulatedContentInfo |
SignerInfos
Gets the signer information.
Declaration
public IReadOnlyList<SignerInfo> SignerInfos { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<SignerInfo> |
Version
Gets the CMS version.
Declaration
public int Version { get; }
Property Value
| Type | Description |
|---|---|
| int |