| OpenPgpContextGetPublicKeys Method |
Get the public keys for the specified mailbox addresses.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax public abstract IList<PgpPublicKey> GetPublicKeys(
IEnumerable<MailboxAddress> mailboxes,
CancellationToken cancellationToken = default
)
Parameters
- mailboxes IEnumerableMailboxAddress
- The mailboxes.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
IListPgpPublicKeyThe encryption keys.
Exceptions Remarks
Gets a list of valid public keys for the specified mailbox addresses that can be used for encryption.
See Also