Dkim Verifier BaseVerify Signature Method
Verify the signature of the message headers.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
if the calculated signature matches signature; otherwise, .
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
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
Booleanif the calculated signature matches signature; otherwise, .
Remarks
Verifies the signature of the message headers.