Discuss this help topic in SecureBlackbox Forum

TElHTTPSServer.OnKeyNeeded

TElHTTPSServer     


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


This event is fired when TElHTTPSServer needs pre-shared key from user.

Declaration

[C#]
    event TSBServerKeyNeededEvent OnKeyNeeded;
    delegate void TSBServerKeyNeededEvent(Object Sender, string Identity, ref byte[] Key);

[VB.NET]
    Event OnKeyNeeded As TSBServerKeyNeededEvent
    Delegate Sub TSBServerKeyNeededEvent(ByVal Sender As Object, ByVal Identity As String, ByRef Key As Byte())

[Pascal]
    property OnKeyNeeded : TSBServerKeyNeededEvent;
    TSBServerKeyNeededEvent = procedure(Sender : TObject; const Identity : string; var Key : ByteArray) of object;

[C++]
    void get_OnKeyNeeded(TSBServerKeyNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnKeyNeeded(TSBServerKeyNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBServerKeyNeededEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcIdentity, int32_t szIdentity, uint8_t pKey[], int32_t &szKey);

[PHP]
    TSBServerKeyNeededEvent|callable|NULL get_OnKeyNeeded()
    void set_OnKeyNeeded(TSBServerKeyNeededEvent|callable|NULL $Value)
    callable TSBServerKeyNeededEvent(TObject $Sender, string $Identity, string &$Key)

[Java]
    TSBServerKeyNeededEvent getOnKeyNeeded();
    void setOnKeyNeeded(TSBServerKeyNeededEvent Value);
    TSBServerKeyNeededEvent.Callback OnKeyNeeded = new TSBServerKeyNeededEvent.Callback() {
        public byte[] TSBServerKeyNeededEventCallback(TObject Sender, String Identity) {
            //...
        }
    }

Parameters

  • Identity - identifier of the key choosen by client
  • Key - key. Must be initialized in event handler.
  • pcIdentity - identifier of the key choosen by client
  • szIdentity - the length of pcIdentity.
  • pKey -
  • szKey - the length of pcKey.

Description

    This event is fired by TElHTTPSServer when it needs pre-shared key from the user. This event is fired only when PSK-based ciphersuites are used.

Discuss this help topic in SecureBlackbox Forum