ApplicationPkcs7Mime.encrypt

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

entitya #GMimeObject to encrypt
flagsa #GMimeEncryptFlags
recipientsan array of recipients to encrypt to

Returns

a new #GMimeApplicationPkcs7Mime object on success

or null on fail. If encrypting fails, an exception will be set on err to provide information as to why the failure occurred.

Throws

[ErrorWrap]