Class DkimSignatureResult
Result of DKIM verification for a single signature (RFC 6376 §6).
Inherited Members
Namespace: DRIT.Mail.Rfc.Dkim
Assembly: DRIT.Mail.dll
Syntax
public sealed class DkimSignatureResult
Constructors
View SourceDkimSignatureResult(DkimVerificationStatus, string?, string, string, string?, DkimSigningAlgorithm, DateTimeOffset?, DateTimeOffset?, IReadOnlyList<string>)
Initializes a new instance of the DkimSignatureResult class.
Declaration
public DkimSignatureResult(DkimVerificationStatus status, string? failureReason, string domain, string selector, string? identity, DkimSigningAlgorithm algorithm, DateTimeOffset? signedAt, DateTimeOffset? expiresAt, IReadOnlyList<string> signedHeaders)
Parameters
| Type | Name | Description |
|---|---|---|
| DkimVerificationStatus | status | |
| string | failureReason | |
| string | domain | |
| string | selector | |
| string | identity | |
| DkimSigningAlgorithm | algorithm | |
| DateTimeOffset? | signedAt | |
| DateTimeOffset? | expiresAt | |
| IReadOnlyList<string> | signedHeaders |
Properties
View SourceAlgorithm
Gets the signing algorithm (a= tag).
Declaration
public DkimSigningAlgorithm Algorithm { get; }
Property Value
| Type | Description |
|---|---|
| DkimSigningAlgorithm |
Domain
Gets the signing domain (d= tag).
Declaration
public string Domain { get; }
Property Value
| Type | Description |
|---|---|
| string |
ExpiresAt
Gets the signature expiration (x= tag), or null if absent.
Declaration
public DateTimeOffset? ExpiresAt { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
FailureReason
Gets the failure reason, or null if the signature passed.
Declaration
public string? FailureReason { get; }
Property Value
| Type | Description |
|---|---|
| string |
Identity
Gets the signer identity (i= tag), or null if absent.
Declaration
public string? Identity { get; }
Property Value
| Type | Description |
|---|---|
| string |
Selector
Gets the selector (s= tag).
Declaration
public string Selector { get; }
Property Value
| Type | Description |
|---|---|
| string |
SignedAt
Gets the signing timestamp (t= tag), or null if absent.
Declaration
public DateTimeOffset? SignedAt { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset? |
SignedHeaders
Gets the signed header fields (h= tag).
Declaration
public IReadOnlyList<string> SignedHeaders { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Status
Gets the verification status.
Declaration
public DkimVerificationStatus Status { get; }
Property Value
| Type | Description |
|---|---|
| DkimVerificationStatus |