Click or drag to resize
MimeKit

OpenPgpContextGetSigningKey Method

Get the signing key associated with the mailbox address.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public abstract PgpSecretKey GetSigningKey(
	MailboxAddress mailbox,
	CancellationToken cancellationToken = default
)

Parameters

mailbox  MailboxAddress
The mailbox.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

PgpSecretKey
The signing key.
Exceptions
ExceptionCondition
ArgumentNullExceptionmailbox is null.
OperationCanceledException The operation was canceled via the cancellation token.
PrivateKeyNotFoundException A secret key for the specified mailbox could not be found.
Remarks
Gets the signing key associated with the mailbox address.
See Also