OpenPgpContextGetPublicKeyRingAsync Method

Asynchronously get the public keyring that contains the specified key asynchronously.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected abstract Task<PgpPublicKeyRing?> GetPublicKeyRingAsync(
	long keyId,
	CancellationToken cancellationToken
)

Parameters

keyId  Int64
The public key identifier.
cancellationToken  CancellationToken
The cancellation token.

Return Value

TaskPgpPublicKeyRing
The public keyring that contains the specified key or if the keyring could not be found.

Remarks

Asynchronously gets the public keyring that contains the specified key.

Exceptions

OperationCanceledException The operation was canceled via the cancellation token.

See Also