Click or drag to resize
MimeKit

DkimPublicKeyLocatorBaseGetPublicKey Method

Get the public key from a DNS TXT record.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
protected static AsymmetricKeyParameter GetPublicKey(
	string txt
)

Parameters

txt  String
The DNS TXT record.

Return Value

AsymmetricKeyParameter
The public key.
Exceptions
ExceptionCondition
ArgumentNullException The txt is .
ParseException There was an error parsing the DNS TXT record.
Remarks
Gets the public key from a DNS TXT record.
See Also