SecureBlackbox

200+ components and classes for all aspects of digital security of your data

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


TElPGPReader.OnCreateOutputStream

TElPGPReader     See also    


 

This event is fired when clear data must be processed.

   

Declaration

[C#/Java]
    event TSBPGPCreateOutputStreamEvent OnCreateOutputStream;
    public delegate void TSBPGPCreateOutputStreamEvent(object Sender, string Filename, DateTime TimeStamp, ref System.IO.Stream Stream, ref bool FreeOnExit)

[VB.NET]
    Event OnCreateOutputStream As TSBPGPCreateOutputStreamEvent
    Delegate Sub TSBPGPCreateOutputStreamEvent(ByVal Sender As Object, ByVal Filename As String, ByVal TimeStamp As DateTime, ByRef Stream As System.IO.Stream, ByRef FreeOnExit As Boolean)

[Pascal]
    property OnCreateOutputStream : TSBPGPCreateOutputStreamEvent;
    TSBPGPCreateOutputStreamEvent = procedure(Sender: TObject; const Filename : string; TimeStamp: TDateTime; var Stream: TStream; var FreeOnExit: boolean);

[C++]
    void get_OnCreateOutputStream(TSBPGPCreateOutputStreamEvent & pMethodOutResult, void * & pDataOutResult);
    void set_OnCreateOutputStream(TSBPGPCreateOutputStreamEvent pMethodValue, void * pDataValue);

   

Parameters

  • FileName - file name (as specified in PGP-message). If its value is _CONSOLE, then message is for your eyes only and should not be saved to any file.
  • TimeStamp - time of last file modification (as specified in PGP-message).
  • Stream - stream for output data that is created by the event handler.
  • FreeOnExit - If set to True, Stream will be destroyed by TElPGPReader automatically.
    If set to False, Stream will be freed manually by the application.
  • Path - path of the file, created by the event handler.
   

Description

    This event is fired by TElPGPReader when it has to process clear data and output stream must be created for this data. The application must allocate the stream and pass it back to PGPReader in Stream parameter.
     Filename and TimeStamp parameters can be empty if input message is cleartext-signed message.
    This event is fired only if message decryption is performed using DecryptAndVerify method.

   

See also:     OutputStream     OnRequestOutputFile     OnArmored     OnArmored     OnCompressed     OnEncrypted     OnKeyPassphrase     OnPassphrase     OnProgress     OnSigned    

 
Back to top