Discuss this help topic in SecureBlackbox Forum

TElWebDAVServer.OnKeyNeeded

TElWebDAVServer     See also     


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


This event is fired when the HTTPS server needs a pre-shared-key from user.

Declaration

[C#/Java]
    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 : TSBSSLServerKeyNeededEvent;
    TSBSSLServerKeyNeededEvent = 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)

Parameters

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

Description

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

See also:     Control    

Discuss this help topic in SecureBlackbox Forum