Click or drag to resize
MimeKit

WindowsSecureMimeContextUpdateSecureMimeCapabilities Method

Updates the known S/MIME capabilities of the client used by the recipient that owns the specified certificate.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected virtual void UpdateSecureMimeCapabilities(
	X509Certificate2 certificate,
	EncryptionAlgorithm[] algorithms,
	DateTime timestamp
)

Parameters

certificate  X509Certificate2
The certificate.
algorithms  EncryptionAlgorithm
The encryption algorithm capabilities of the client (in preferred order).
timestamp  DateTime
The timestamp.
Remarks

Updates the known S/MIME capabilities of the client used by the recipient that owns the specified certificate.

This method is called when decoding digital signatures that include S/MIME capabilities in the metadata, allowing custom implementations to update the X.509 certificate records with the list of preferred encryption algorithms specified by the sending client.

See Also