Click or drag to resize
MimeKit

DkimVerifierBaseVerifySignature Method

Verify the signature of the message headers.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected bool VerifySignature(
	FormatOptions options,
	MimeMessage message,
	Header dkimSignature,
	DkimSignatureAlgorithm signatureAlgorithm,
	AsymmetricKeyParameter key,
	string[] headers,
	DkimCanonicalizationAlgorithm canonicalizationAlgorithm,
	string signature
)

Parameters

options  FormatOptions
The formatting options.
message  MimeMessage
The signed MIME message.
dkimSignature  Header
The DKIM-Signature or ARC-Message-Signature header.
signatureAlgorithm  DkimSignatureAlgorithm
The algorithm used to sign the message headers.
key  AsymmetricKeyParameter
The public key used to verify the signature.
headers  String
The list of headers that were signed.
canonicalizationAlgorithm  DkimCanonicalizationAlgorithm
The algorithm used to canonicalize the headers.
signature  String
The expected signature of the headers encoded in base64.

Return Value

Boolean
true if the calculated signature matches signature; otherwise, false.
Remarks
Verifies the signature of the message headers.
See Also