Discuss this help topic in SecureBlackbox Forum


TElPGPReader     See also     

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

This event is fired when TElPGPReader has to process the data encrypted with password.


    event TSBPGPPassphraseEvent OnPassphrase;
    delegate void TSBPGPPassphraseEvent(Object Sender, ref string Passphrase, ref bool Cancel);

    Event OnPassphrase As TSBPGPPassphraseEvent
    Delegate Sub TSBPGPPassphraseEvent(ByVal Sender As Object, ByRef Passphrase As String, ByRef Cancel As Boolean)

    property OnPassphrase : TSBPGPPassphraseEvent;
    TSBPGPPassphraseEvent = procedure(Sender: TObject; var Passphrase: string; var Cancel : boolean) of object;

    void get_OnPassphrase(TSBPGPPassphraseEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnPassphrase(TSBPGPPassphraseEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBPGPPassphraseEvent)(void * _ObjectData, TObjectHandle Sender, char * pcPassphrase, int32_t &szPassphrase, int8_t &Cancel);

    TSBPGPPassphraseEvent|callable|NULL get_OnPassphrase()
    void set_OnPassphrase(TSBPGPPassphraseEvent|callable|NULL $Value)
    callable TSBPGPPassphraseEvent(TObject $Sender, string &$Passphrase, bool &$Cancel)


  • Passphrase - password.
  • Cancel - True if the password can't be provided and processing must be cancelled.
  • pcPassphrase - password.
  • szPassphrase - the length of pcPassphrase.


    This event is fired by TElPGPReader when it needs to process the data encrypted with password. The event is fired until correct password is passed or Cancel parameter is set to True.

See also:     Passphrase     OnArmored     OnCompressed     OnCreateOutputStream     OnEncrypted     OnKeyPassphrase     OnProgress     OnSigned    

Discuss this help topic in SecureBlackbox Forum