Discuss this help topic in SecureBlackbox Forum

TElPGPReader.OnPassphrase

TElPGPReader     See also     


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


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

Declaration

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

[VB.NET]
    Event OnPassphrase As TSBPGPPassphraseEvent
    Delegate Sub TSBPGPPassphraseEvent(ByVal Sender As Object, ByRef Passphrase As String, ByRef Cancel As Boolean)

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

[C++]
    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);

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

[Java]
    TSBPGPPassphraseEvent getOnPassphrase();
    void setOnPassphrase(TSBPGPPassphraseEvent Value);
    TSBPGPPassphraseEvent.Callback OnPassphrase = new TSBPGPPassphraseEvent.Callback() {
        public void TSBPGPPassphraseEventCallback(TObject Sender, TSBString Passphrase, TSBBoolean Cancel) {
            //...
        }
    }

Parameters

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

Description

    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