encrypt


Description:

public static ApplicationPkcs7Mime? encrypt (Object entity, EncryptFlags flags, GenericArray<string> recipients) throws Error

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 Object to encrypt

flags

a EncryptFlags

recipients

an array of recipients to encrypt to

Returns:

a new ApplicationPkcs7Mime 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.




2022 vala-language.org