Click or drag to resize
MimeKit

OpenPgpContextGetSigningKeyAsync Method

Asynchronously get the signing key associated with the mailbox address.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public virtual Task<PgpSecretKey> GetSigningKeyAsync(
	MailboxAddress mailbox,
	CancellationToken cancellationToken = default
)

Parameters

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

Return Value

TaskPgpSecretKey
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
Asynchronously gets the signing key associated with the mailbox address.
See Also