DecryptionInfoNeeded Event
Asks the application to provide a decryption certificate.
Syntax
public event OnDecryptionInfoNeededHandler OnDecryptionInfoNeeded; public delegate void OnDecryptionInfoNeededHandler(object sender, MailreaderDecryptionInfoNeededEventArgs e); public class MailreaderDecryptionInfoNeededEventArgs : EventArgs { public string IssuerRDN { get; } public byte[] SerialNumber { get; } public byte[] SubjectKeyID { get; } }
Public Event OnDecryptionInfoNeeded As OnDecryptionInfoNeededHandler Public Delegate Sub OnDecryptionInfoNeededHandler(sender As Object, e As MailreaderDecryptionInfoNeededEventArgs) Public Class MailreaderDecryptionInfoNeededEventArgs Inherits EventArgs Public ReadOnly Property IssuerRDN As String Public ReadOnly Property SerialNumber As Byte() Public ReadOnly Property SubjectKeyID As Byte() End Class
Remarks
This event is fired when the component needs a decryption certificate. Use the provided values to look up the certificate, and assign it to DecryptionCertificate property.
Note that the decryption certificate must have an associated private key.