EncryptionCertificate Property
The certificate to use for encryption.
Syntax
public var encryptionCertificate: Certificate {
get {...}
set {...} }
Remarks
Use this property to specify the certificate to be used for encryption. This is a "recipient's" certificate, and as such it does not need to have an associated private key.
If the certificate is provided, an output message of EnvelopedData type will be created. The private key corresponding to the encryption certificate will be needed to decrypt it.