DkimVerifierBaseIsEnabled Method

Check whether a DKIM signature algorithm is enabled.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public bool IsEnabled(
	DkimSignatureAlgorithm algorithm
)

Parameters

algorithm  DkimSignatureAlgorithm
The DKIM signature algorithm.

Return Value

Boolean
if the specified DKIM signature algorithm is enabled; otherwise, .

Remarks

Determines whether the specified DKIM signature algorithm is enabled.

  Security Note

Due to the recognized weakness of the SHA-1 hash algorithm and the wide availability of the SHA-256 hash algorithm (it has been a required part of DKIM since it was originally standardized in 2007), it is recommended that RsaSha1 NOT be enabled.

See Also