X509CertificateDatabaseFindPrivateKeys Method

Finds the private keys matching the specified selector.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public IEnumerable<AsymmetricKeyParameter> FindPrivateKeys(
	ISelector<X509Certificate> selector
)

Parameters

selector  ISelectorX509Certificate
The match selector or to return all private keys.

Return Value

IEnumerableAsymmetricKeyParameter
The private keys for the matching certificates.

Implements

IX509CertificateDatabaseFindPrivateKeys(ISelectorX509Certificate)

Remarks

Searches the database for certificate records matching the selector, returning the private keys for each matching record.

Exceptions

See Also