| DkimSignerBaseBodyCanonicalizationAlgorithm Property |
Get or set the canonicalization algorithm to use for the message body.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public DkimCanonicalizationAlgorithm BodyCanonicalizationAlgorithm { get; set; }
Property Value
DkimCanonicalizationAlgorithmThe canonicalization algorithm.
Remarks
Gets or sets the canonicalization algorithm to use for the message body.
Example public static void DkimSign (MimeMessage message)
{
var headers = new HeaderId[] { HeaderId.From, HeaderId.Subject, HeaderId.Date };
var signer = new DkimSigner ("privatekey.pem", "example.com", "brisbane", DkimSignatureAlgorithm.RsaSha256) {
HeaderCanonicalizationAlgorithm = DkimCanonicalizationAlgorithm.Simple,
BodyCanonicalizationAlgorithm = DkimCanonicalizationAlgorithm.Simple,
AgentOrUserIdentifier = "@eng.example.com",
QueryMethod = "dns/txt",
};
message.Prepare (EncodingConstraint.SevenBit);
signer.Sign (message, headers);
}
See Also