Discuss this help topic in SecureBlackbox Forum

TElZipReader.OnPrivateKeyNeeded

TElZipReader     See also     


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


This event is fired when the password for decryption is required.

Declaration

[C#/Java]
    event TSBZipPrivateKeyNeededEvent OnPrivateKeyNeeded;
    delegate void TSBZipPrivateKeyNeededEvent(Object Sender, Object Param, TElX509Certificate Certificate);

[VB.NET]
    Event OnPrivateKeyNeeded As TSBZipPrivateKeyNeededEvent
    Delegate Sub TSBZipPrivateKeyNeededEvent(ByVal Sender As Object, ByVal Param As Object, ByVal Certificate As TElX509Certificate)

[Pascal]
    property OnPrivateKeyNeeded : TSBZipPrivateKeyNeededEvent;
    TSBZipPrivateKeyNeededEvent = procedure(Sender: TObject; Param : pointer; Certificate : TElX509Certificate) of object;

[C++]
    void get_OnPrivateKeyNeeded(TSBZipPrivateKeyNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnPrivateKeyNeeded(TSBZipPrivateKeyNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBZipPrivateKeyNeededEvent)(void * _ObjectData, TObjectHandle Sender, void * Param, TElX509CertificateHandle Certificate);

[PHP]
    TSBZipPrivateKeyNeededEvent|callable|NULL get_OnPrivateKeyNeeded()
    void set_OnPrivateKeyNeeded(TSBZipPrivateKeyNeededEvent|callable|NULL $Value)
    callable TSBZipPrivateKeyNeededEvent(TObject $Sender, TSBPointer|NULL $Param, TElX509Certificate $Certificate)

Parameters

  • Param - reference to the object which contains additional information about the archive entry.
  • Certificate - missing private key should be provided via this parameter.

Description

    This event is fired by TElZipReader when it requires a private key to decrypt the archive.

See also:     OnPasswordNeeded     EncryptingCertificates    

Discuss this help topic in SecureBlackbox Forum