Discuss this help topic in SecureBlackbox Forum
Manually decrypt SAML assertions
First of all you need to load the assertion as an XML using TElXMLDOMDocument class. Then you should create an instance of TElSAMLEncryptedAssertionElement and load the assertion using TElSAMLEncryptedAssertionElement.LoadFromXML() method. After the assertion is loaded you should create an instance of TElSAMLEncryptionHandler, initialize its TElSAMLEncryptionHandler.Certificate property with a certificate object to be used for decryption, and then assign the handler to TElSAMLEncryptedAssertionElement.Handler property. Then TElSAMLEncryptedAssertionElement.Decrypt() method is called to decrypt the element.