Discuss this help topic in SecureBlackbox Forum

TElPGPReader.OnSigned

TElPGPReader     See also     


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


This event is fired before signed message is processed.

Declaration

[C#]
    event TSBPGPSignedEvent OnSigned;
    delegate void TSBPGPSignedEvent(Object Sender, Byte[][] KeyIDs, TSBPGPSignatureType SignatureType);

[VB.NET]
    Event OnSigned As TSBPGPSignedEvent
    Delegate Sub TSBPGPSignedEvent(ByVal Sender As Object, ByVal KeyIDs As Byte[][], ByVal SignatureType As TSBPGPSignatureType)

[Pascal]
    property OnSigned : TSBPGPSignedEvent;
    TSBPGPSignedEvent = procedure(Sender: TObject; const KeyIDs : TSBKeyIDs; SignatureType : TSBPGPSignatureType) of object;
    TSBKeyIDs = array of TSBKeyID;
    TSBKeyID = array[0..7] of byte;

[C++]
    void get_OnSigned(TSBPGPSignedEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnSigned(TSBPGPSignedEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBPGPSignedEvent)(void * _ObjectData, TObjectHandle Sender, const uint8_t pKeyIDs[][8], int32_t szKeyIDs, TSBPGPSignatureTypeRaw SignatureType);

[PHP]
    TSBPGPSignedEvent|callable|NULL get_OnSigned()
    void set_OnSigned(TSBPGPSignedEvent|callable|NULL $Value)
    callable TSBPGPSignedEvent(TObject $Sender, $KeyIDs, integer $SignatureType)

[Java]
    TSBPGPSignedEvent getOnSigned();
    void setOnSigned(TSBPGPSignedEvent Value);
    TSBPGPSignedEvent.Callback OnSigned = new TSBPGPSignedEvent.Callback() {
        public void TSBPGPSignedEventCallback(TObject Sender, byte[][] KeyIDs, TSBPGPSignatureType SignatureType) {
            //...
        }
    }

Parameters

  • KeyIDs - array containing identifiers of keys used for message signing.
  • SignatureType - type of the signature.
  • pKeyIDs -
  • szKeyIDs - the length of pcKeyIDs.

Values

Description

    This event is fired by TElPGPReader when it has to process signed data.
    Use KeyIDs parameter to find keys used for message signing, combine them into keyring and set it as VerifyingKeys property inside this event handler.

See also:     OnArmored     OnCompressed     OnCreateOutputStream     OnEncrypted     OnKeyPassphrase     OnPassphrase     OnProgress     OnSignatures    

Discuss this help topic in SecureBlackbox Forum