Discuss this help topic in SecureBlackbox Forum

TElPGPSecretKey.OnBeforeSign

TElPGPSecretKey     See also     


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


This event is fired just before the end of the signing process.

Declaration

[C#]
    event TSBPGPBeforeSignEvent OnBeforeSign;
    delegate void TSBPGPBeforeSignEvent(Object Sender, TElPGPSignature Signature, Object Subject);

[VB.NET]
    Event OnBeforeSign As TSBPGPBeforeSignEvent
    Delegate Sub TSBPGPBeforeSignEvent(ByVal Sender As Object, ByVal Signature As TElPGPSignature, ByVal Subject As Object)

[Pascal]
    property OnBeforeSign : TSBPGPBeforeSignEvent;
    TSBPGPBeforeSignEvent = procedure(Sender: TObject; Signature : TElPGPSignature; Subject : TObject) of object;

[C++]
    void get_OnBeforeSign(TSBPGPBeforeSignEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeSign(TSBPGPBeforeSignEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBPGPBeforeSignEvent)(void * _ObjectData, TObjectHandle Sender, TElPGPSignatureHandle Signature, TObjectHandle Subject);

[PHP]
    TSBPGPBeforeSignEvent|callable|NULL get_OnBeforeSign()
    void set_OnBeforeSign(TSBPGPBeforeSignEvent|callable|NULL $Value)
    callable TSBPGPBeforeSignEvent(TObject $Sender, TElPGPSignature $Signature, TObject $Subject)

[Java]
    TSBPGPBeforeSignEvent getOnBeforeSign();
    void setOnBeforeSign(TSBPGPBeforeSignEvent Value);
    TSBPGPBeforeSignEvent.Callback OnBeforeSign = new TSBPGPBeforeSignEvent.Callback() {
        public void TSBPGPBeforeSignEventCallback(TObject Sender, TElPGPSignature Signature, TObject Subject) {
            //...
        }
    }

Parameters

  • Signature - a newly generated UserID/SubKey/Signature
  • Subject - object being signed

Description

    This event is fired just before a signature is generated inside the Generate method. Use this event handler to configure signature extensions before the signing is done. This event may be fired several times for a single Generate call (for each signature being created, such as UserID signature and subkey signature).

See also:     Generate    

Discuss this help topic in SecureBlackbox Forum