Discuss this help topic in SecureBlackbox Forum

TElSocket.OnDNSKeyNeeded

TElSocket     See also     


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


This event is fired when a key is needed to verify the signature.

Declaration

[C#]
    event TSBDNSKeyNeededEvent OnDNSKeyNeeded;
    delegate void TSBDNSKeyNeededEvent(Object Sender, string Owner, ushort KeyTag, byte Algorithm, ref TElDNSPublicKeyRecord Key, ref bool ReleaseKey);

[VB.NET]
    Event OnDNSKeyNeeded As TSBDNSKeyNeededEvent
    Delegate Sub TSBDNSKeyNeededEvent(ByVal Sender As Object, ByVal Owner As String, ByVal KeyTag As UInt16, ByVal Algorithm As Byte, ByRef Key As TElDNSPublicKeyRecord, ByRef ReleaseKey As Boolean)

[Pascal]
    property OnDNSKeyNeeded : TSBDNSKeyNeededEvent;
    TSBDNSKeyNeededEvent = procedure (Sender: TObject; const Owner : string; KeyTag : word; Algorithm : byte; var Key : TElDNSPublicKeyRecord; var ReleaseKey : boolean) of object;

[C++]
    void get_OnDNSKeyNeeded(TSBDNSKeyNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnDNSKeyNeeded(TSBDNSKeyNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBDNSKeyNeededEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcOwner, int32_t szOwner, uint16_t KeyTag, uint8_t Algorithm, TElDNSPublicKeyRecordHandle &Key, int8_t &ReleaseKey);

[PHP]
    TSBDNSKeyNeededEvent|callable|NULL get_OnDNSKeyNeeded()
    void set_OnDNSKeyNeeded(TSBDNSKeyNeededEvent|callable|NULL $Value)
    callable TSBDNSKeyNeededEvent(TObject $Sender, string $Owner, integer $KeyTag, integer $Algorithm, TElDNSPublicKeyRecord &$Key, bool &$ReleaseKey)

[Java]
    TSBDNSKeyNeededEvent getOnDNSKeyNeeded();
    void setOnDNSKeyNeeded(TSBDNSKeyNeededEvent Value);
    TSBDNSKeyNeededEvent.Callback OnDNSKeyNeeded = new TSBDNSKeyNeededEvent.Callback() {
        public void TSBDNSKeyNeededEventCallback(TObject Sender, String Owner, short KeyTag, byte Algorithm, TElDNSPublicKeyRecord[] Key, TSBBoolean ReleaseKey) {
            //...
        }
    }

Parameters

  • Owner - specifies key owner
  • KeyTag - specifies key tag
  • Algorithm - contains signature algorithm
  • Key - value of the key should be provided via this parameter
  • ReleaseKey - set this parameter to True to release the key
  • pcOwner - specifies key owner
  • szOwner - the length of pcOwner.

Values:

Description

    This event is fired by TElSocket when a key is required to verify a signature. Provide the corresponding key record via Key parameter.

See also:     OnDNSKeyValidate     OnDNSResolve     DNS    

Discuss this help topic in SecureBlackbox Forum