 | OpenPgpContextGetPublicKeysAsync Method |
Asynchronously get the public keys for the specified mailbox addresses.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxpublic virtual Task<IList<PgpPublicKey>> GetPublicKeysAsync(
IEnumerable<MailboxAddress> mailboxes,
CancellationToken cancellationToken = default
)
Parameters
- mailboxes IEnumerableMailboxAddress
- The mailboxes.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskIListPgpPublicKeyThe encryption keys.
Exceptions
Remarks
Asynchronously gets a list of valid public keys for the specified mailbox addresses that can be used for encryption.
See Also