Discuss this help topic in SecureBlackbox Forum

TElXMLCustomDecryptionTransform.OnKeyData

TElXMLCustomDecryptionTransform     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when the key contained in KeyData is not valid for the decryption.

Declaration

[C#]
    event TSBXMLDecryptKeyDataEvent OnKeyData;
    delegate void TSBXMLDecryptKeyDataEvent(Object Sender, TElXMLDOMElement EncryptedData, TElXMLDecryptor Decryptor, int PrevResult, ref TElXMLKeyInfoData KeyData);

[VB.NET]
    Event OnKeyData As TSBXMLDecryptKeyDataEvent
    Delegate Sub TSBXMLDecryptKeyDataEvent(ByVal Sender As Object, ByVal EncryptedData As TElXMLDOMElement, ByVal Decryptor As TElXMLDecryptor, ByVal PrevResult As Integer, ByRef KeyData As TElXMLKeyInfoData)

[Pascal]
    Property OnKeyData : TSBXMLDecryptKeyDataEvent;
    TSBXMLDecryptKeyDataEvent = function(Sender: TObject; EncryptedData : TElXMLDOMElement; Decryptor : TElXMLDecryptor; PrevResult : integer; KeyData : TElXMLKeyInfoData): Boolean of object;

[C++]
    void get_OnKeyData(TSBXMLDecryptKeyDataEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnKeyData(TSBXMLDecryptKeyDataEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBXMLDecryptKeyDataEvent)(void * _ObjectData, TObjectHandle Sender, TElXMLDOMElementHandle EncryptedData, TElXMLDecryptorHandle Decryptor, int32_t PrevResult, TElXMLKeyInfoDataHandle &KeyData);

[PHP]
    TSBXMLDecryptKeyDataEvent|callable|NULL get_OnKeyData()
    void set_OnKeyData(TSBXMLDecryptKeyDataEvent|callable|NULL $Value)
    callable TSBXMLDecryptKeyDataEvent(TObject $Sender, TElXMLDOMElement $EncryptedData, TElXMLDecryptor $Decryptor, integer $PrevResult, TElXMLKeyInfoData &$KeyData)

[Java]
    TSBXMLDecryptKeyDataEvent getOnKeyData();
    void setOnKeyData(TSBXMLDecryptKeyDataEvent Value);
    TSBXMLDecryptKeyDataEvent.Callback OnKeyData = new TSBXMLDecryptKeyDataEvent.Callback() {
        public void TSBXMLDecryptKeyDataEventCallback(TObject Sender, TElXMLDOMElement EncryptedData, TElXMLDecryptor Decryptor, int PrevResult, TELXMLDecryptKeyDataEventParams KeyData) {
            //...
        }
    }

Parameters

  • EncryptedData - The data which needs to be decrypted
  • Decryptor - The XML decryptor
  • PrevResult - Result which was returned by the Decryptor.Decrypt method with the invalid key (except for the SB_XML_ENC_ERROR_OK)
  • KeyData - Valid key for the data decryption

Description

    This event is fired by the TElXMLCustomDecryptionTransform if the key contained in KeyData is not valid. User should specify the valid key data in the corresponding parameter.

See also:     KeyData    

Discuss this help topic in SecureBlackbox Forum