Discuss this help topic in SecureBlackbox Forum

TElWebDAVServer.OnKeyNeeded

TElWebDAVServer     See also     


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


This event is fired when the HTTPS server needs a 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 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