Bouncy Castle Secure Mime ContextGet Private Key Method
Get the private key for the certificate matching the specified selector.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The private key on success; otherwise, .
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
protected abstract AsymmetricKeyParameter? GetPrivateKey(
ISelector<X509Certificate> selector
)Parameters
- selector ISelectorX509Certificate
- The search criteria for the private key.
Return Value
AsymmetricKeyParameterThe private key on success; otherwise, .
Remarks
Gets the private key for the first certificate that matches the specified selector.
This method is used when signing or decrypting content.