X509Certificate DatabaseFind Private Keys Method
Finds the private keys matching the specified selector.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The private keys for the matching certificates.
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
IEnumerableAsymmetricKeyParameterThe 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
| ObjectDisposedException | The X509CertificateDatabase has been disposed. |