The Encryption class / xml.Encryption methods |
Assigns a copy of the X509 certificate to this Encryption object.
NULL is allowed to avoid the certificate being added.
To encrypt using a certificate, you must use the createPublicKey method of the X509 class to obtain the public key embedded in the certificate, and then provide it to the encryption object with above setKeyEncryptionKey method.