or null on fail. If encrypting fails, an exception will be set on err to provide information as to why the failure occurred.
ApplicationPkcs7Mime.encrypt
gmime.application_pkcs7_mime.ApplicationPkcs7Mime encrypt(gmime.object.ObjectWrap entity, gmime.types.EncryptFlags flags, string[] recipients)Attempts to encrypt the entity MIME part to the public keys of recipients using S/MIME. If successful, a new application/pkcs7-mime object is returned.
Parameters
entity | a #GMimeObject to encrypt |
flags | a #GMimeEncryptFlags |
recipients | an array of recipients to encrypt to |
Returns
a new #GMimeApplicationPkcs7Mime object on success
Throws
[ErrorWrap]