Discuss this help topic in SecureBlackbox Forum
Manually encrypt assertions
To create an encrypted assertion, create an instance of TElSAMLEncryptedAssertionElement class, and initialize its assertion properties according to your needs. The encryption is handled by TElSAMLEncryptionHandler class, therefore set the new assertion's Handler property to the existing TElSAMLEncryptionHandler object. Finally, assign the encryption certificate to the handler's Certificate property.
To save the encrypted assertion, use its SaveToXML() method.