Dkim Signer(AsymmetricKeyParameter, String, String, Dkim Signature Algorithm) Constructor
Initialize a new instance of the DkimSigner class.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public DkimSigner(
AsymmetricKeyParameter key,
string domain,
string selector,
DkimSignatureAlgorithm algorithm = DkimSignatureAlgorithm.RsaSha256
)Parameters
- key AsymmetricKeyParameter
- The signer's private key.
- domain String
- The domain that the signer represents.
- selector String
- The selector subdividing the domain.
- algorithm DkimSignatureAlgorithm (Optional)
- The signature algorithm.
Remarks
Creates a new DkimSigner.
Exceptions
| ArgumentNullException |
key is . -or- domain is . -or- selector is . |
| ArgumentException | key is not a private key. |