Dkim Signer Base(Stream, String, String, Dkim Signature Algorithm) Constructor
Initialize a new instance of the DkimSignerBase 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#
protected DkimSignerBase(
Stream stream,
string domain,
string selector,
DkimSignatureAlgorithm algorithm = DkimSignatureAlgorithm.RsaSha256
)Parameters
- stream Stream
- The stream containing the 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 DkimSignerBase.
Exceptions
| ArgumentNullException |
stream is . -or- domain is . -or- selector is . |
| FormatException | The file did not contain a private key. |
| IOException | An I/O error occurred. |