Discuss this help topic in SecureBlackbox Forum


TElZipReader     See also     

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

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


    event TSBZipPrivateKeyNeededEvent OnPrivateKeyNeeded;
    delegate void TSBZipPrivateKeyNeededEvent(Object Sender, Object Param, TElX509Certificate Certificate);

    Event OnPrivateKeyNeeded As TSBZipPrivateKeyNeededEvent
    Delegate Sub TSBZipPrivateKeyNeededEvent(ByVal Sender As Object, ByVal Param As Object, ByVal Certificate As TElX509Certificate)

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

    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);

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

    TSBZipPrivateKeyNeededEvent getOnPrivateKeyNeeded();
    void setOnPrivateKeyNeeded(TSBZipPrivateKeyNeededEvent Value);
    TSBZipPrivateKeyNeededEvent.Callback OnPrivateKeyNeeded = new TSBZipPrivateKeyNeededEvent.Callback() {
        public void TSBZipPrivateKeyNeededEventCallback(TObject Sender, TObject Param, TElX509Certificate Certificate) {


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


    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