encrypt
Description:
[ Version ( since = "3.0" ) ]
public async bool encrypt (string? userid, GenericArray<string> recipients, MimePart ipart, MimePart opart, int io_priority, Cancellable? cancellable = null) throws Error
public async bool encrypt (string? userid, GenericArray<string> recipients, MimePart ipart, MimePart opart, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously encrypts the clear-text ipart
and writes the resulting cipher-text to opart
.
When the operation is finished, callback
will be called. You can then call encrypt.end to get the
result of the operation.
Note: The userid
is unused, null should be passed for it.
Parameters:
this | |
userid |
unused |
recipients |
an array of recipient key IDs and/or email addresses |
ipart |
clear-text MimePart |
opart |
cipher-text MimePart |
io_priority |
the I/O priority of the request |
cancellable |
optional Cancellable object, or null |
callback |
a TaskReadyCallback to call when the request is satisfied |
user_data |
data to pass to the callback function |