ApplicationPkcs7Mime.sign

Attempts to sign the entity MIME part with userid's private key using S/MIME. If successful, a new application/pkcs7-mime object is returned.

Parameters

entity gmime.object.ObjectWrap

a #GMimeObject

userid string

the user id to sign with

Return Value

Type: gmime.application_pkcs7_mime.ApplicationPkcs7Mime

a new #GMimeApplicationPkcs7Mime object on success or null on fail. If signing fails, an exception will be set on err to provide information as to why the failure occurred.

Throws