Class SMimeVerificationResult
The result of S/MIME signature verification (RFC 5751 §3.4).
Inherited Members
Namespace: DRIT.Mail.Rfc.SMime
Assembly: DRIT.Mail.dll
Syntax
public sealed class SMimeVerificationResult
Constructors
View SourceSMimeVerificationResult(bool, IReadOnlyList<SMimeSignatureInfo>, MimeMessage?)
Initializes a new instance of the SMimeVerificationResult class.
Declaration
public SMimeVerificationResult(bool isSigned, IReadOnlyList<SMimeSignatureInfo> signatures, MimeMessage? content)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isSigned | |
| IReadOnlyList<SMimeSignatureInfo> | signatures | |
| MimeMessage | content |
Properties
View SourceContent
Gets the extracted content message, or null if the message is not signed or the content could not be extracted.
Declaration
public MimeMessage? Content { get; }
Property Value
| Type | Description |
|---|---|
| MimeMessage |
HasValidSignature
Gets a value indicating whether at least one signature is valid.
Declaration
public bool HasValidSignature { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsSigned
Gets a value indicating whether the message is S/MIME signed (detached or opaque).
Declaration
public bool IsSigned { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Signatures
Gets the verification result for each SignerInfo in the SignedData. Empty when IsSigned is false.
Declaration
public IReadOnlyList<SMimeSignatureInfo> Signatures { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<SMimeSignatureInfo> |