Click or drag to resize
GDSecureMimeEncoderSign Method (GDSecureMimeCertificate, IListGDSecureMimeCertificate, GDSMIMEDigest, GDSMIMESignFormat)
Signs a message.

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public void Sign(
	GDSecureMimeCertificate certificate,
	IList<GDSecureMimeCertificate> additionalCertificates,
	GDSMIMEDigest digest,
	GDSMIMESignFormat format
)

Parameters

certificate
Type: GDGDSecureMimeCertificate
The certificate to sign with. The private key must also be present within the secure container.
additionalCertificates
Type: System.Collections.GenericIListGDSecureMimeCertificate
Additional certificates, if any, to be attached to the signature. For example, an encryption certificate (if different from the signing certificate) so the receiver can reply to the clear text signed message in encrypted format.
digest
Type: GDGDSMIMEDigest
Digest algorithm to be used.
format
Type: GDGDSMIMESignFormat
If the message is to be understood by agents that do not have SMIME capability, specify the ClearSigned option. Otherwise, specify OpaqueSigned.
Remarks

This method is lazy. After execution it stores operation in queue which is processed by FlushAsync method.

See Also