Discuss this help topic in SecureBlackbox Forum


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.


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

    Event OnKeyNeeded As TSBServerKeyNeededEvent
    Delegate Sub TSBServerKeyNeededEvent(ByVal Sender As Object, ByVal Identity As String, ByRef Key As Byte())

    property OnKeyNeeded : TSBSSLServerKeyNeededEvent;
    TSBSSLServerKeyNeededEvent = procedure(Sender : TObject; const Identity : string; var Key : ByteArray) of object;

    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);

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

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


  • 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.


    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