Click or drag to resize
MimeKit

BouncyCastleSecureMimeContextGetPrivateKey Method

Get the private key for the certificate matching the specified selector.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
protected abstract AsymmetricKeyParameter GetPrivateKey(
	ISelector<X509Certificate> selector
)

Parameters

selector  ISelectorX509Certificate
The search criteria for the private key.

Return Value

AsymmetricKeyParameter
The private key on success; otherwise, null.
Remarks

Gets the private key for the first certificate that matches the specified selector.

This method is used when signing or decrypting content.

See Also