Attempts to encrypt (and conditionally sign) the entity
MIME part to the public keys of recipients
using the
ctx
encryption context.
If successful, a new multipart/encrypted object is returned.
ctx | |
entity |
MIME part to encrypt |
sign |
true if the content should also be signed or false otherwise |
userid |
user id to use for signing (only used if |
flags | |
recipients |
an array of recipients to encrypt to |
a new MultipartEncrypted object on success or
null on fail. If encrypting fails, an exception will be set on |