DigitalSignatureOptions Class
Represents a set of options for signing an e-mail with a digital signature.
- Inheritance:
- System.ObjectDigitalSignatureOptions
Constructors
DigitalSignatureOptions()
Creates a new instance of DigitalSignatureOptions.
Properties
Certificate
The System.Security.Cryptography.X509Certificates.X509Certificate2 to be used on signing.
public X509Certificate2 Certificate { get; set; }
Public Property Certificate As X509Certificate2
Property Value
- System.Security.Cryptography.X509Certificates.X509Certificate2
CertificatePassword
The password for the certificate to be loaded from CertificatePath.
public string CertificatePassword { get; set; }
Public Property CertificatePassword As String
Property Value
- System.String
CertificatePath
The path to the certificate to be used on signing.
Property Value
- System.String
ClearSigned
Indicates if the signature should be clear-signed (true) or opaque-signed (false).
By default this is set to true.
Opaque-signed messages are composed of a single part containing both the signature and e-mail's content (like body and attachments) encoded into binary form.
Clear-signed messages are composed of two separate parts: the e-mail's content (body and attachments) and a signature.
Because of that, opaque-signed messages are only visible on e-mail applications that know how to handle singed messages, while clear-signed messages are visible on any e-mail application.
Property Value
- System.Boolean