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.3.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 null.
ParseException There was an error parsing the DNS TXT record.
Remarks
Gets the public key from a DNS TXT record.
See Also