• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DkimVerifier

Verifies DKIM signatures (RFC 6376 §6). The verifier finds all DKIM-Signature headers in a message, retrieves the public key from DNS, recomputes the body hash and header hash, and verifies the RSA signature.

Inheritance
object
DkimVerifier
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Mail.Rfc.Dkim
Assembly: DRIT.Mail.dll
Syntax
public sealed class DkimVerifier

Constructors

View Source

DkimVerifier()

Initializes a new instance of the DkimVerifier class with the default DNS-based key resolver.

Declaration
public DkimVerifier()
View Source

DkimVerifier(IDkimKeyResolver)

Initializes a new instance of the DkimVerifier class with the specified key resolver.

Declaration
public DkimVerifier(IDkimKeyResolver keyResolver)
Parameters
Type Name Description
IDkimKeyResolver keyResolver

The key resolver used by the operation.

Methods

View Source

Verify(MimeMessage)

Verifies the DKIM signatures in a MimeMessage. The message is serialized first; this overload is only valid for unmodified messages.

Declaration
public DkimVerificationResult Verify(MimeMessage message)
Parameters
Type Name Description
MimeMessage message

The message to process.

Returns
Type Description
DkimVerificationResult
View Source

Verify(byte[])

Verifies the DKIM signatures in the given raw message bytes.

Declaration
public DkimVerificationResult Verify(byte[] messageBytes)
Parameters
Type Name Description
byte[] messageBytes

The message bytes used by the operation.

Returns
Type Description
DkimVerificationResult
View Source

Verify(Stream)

Verifies the DKIM signatures in the message read from the given stream.

Declaration
public DkimVerificationResult Verify(Stream messageStream)
Parameters
Type Name Description
Stream messageStream

The message stream used by the operation.

Returns
Type Description
DkimVerificationResult
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX