Discuss this help topic in SecureBlackbox Forum

TElSSHBaseClient.OnKeyValidate

TElSSHBaseClient     See also     


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


This event if fired when server's public key is received and has to be validated.

Declaration

[C#]
    event TSSHKeyValidateEvent OnKeyValidate;
    delegate void TSSHKeyValidateEvent(Object Sender, TElSSHKey ServerKey, ref bool Validate);

[VB.NET]
    Event OnKeyValidate As TSSHKeyValidateEvent
    Delegate Sub TSSHKeyValidateEvent(ByVal Sender As Object, ByVal ServerKey As TElSSHKey, ByRef Validate As Boolean)

[Pascal]
    property OnKeyValidate : TSSHKeyValidateEvent;
    TSSHKeyValidateEvent = procedure(Sender : TObject; ServerKey : TElSSHKey; var Validate : boolean) of object;

[C++]
    void get_OnKeyValidate(TSSHKeyValidateEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnKeyValidate(TSSHKeyValidateEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHKeyValidateEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHKeyHandle ServerKey, int8_t &Validate);

[PHP]
    TSSHKeyValidateEvent|callable|NULL get_OnKeyValidate()
    void set_OnKeyValidate(TSSHKeyValidateEvent|callable|NULL $Value)
    callable TSSHKeyValidateEvent(TObject $Sender, TElSSHKey $ServerKey, bool &$Validate)

[Java]
    TSSHKeyValidateEvent getOnKeyValidate();
    void setOnKeyValidate(TSSHKeyValidateEvent Value);
    TSSHKeyValidateEvent.Callback OnKeyValidate = new TSSHKeyValidateEvent.Callback() {
        public void TSSHKeyValidateEventCallback(TObject Sender, TElSSHKey ServerKey, TSBBoolean Validate) {
            //...
        }
    }

Parameters

  • ServerKey - server's public key.
  • Validate - set this value accordingly to the result of key validation.

Description

Handle this event to validate the server's public keys. Usually, known servers are identified by their public keys. Each server has a corresponding public key.

TElSSHBaseClient will close the connection if you pass False in the Validate parameter.

See also:     TElSSHKey    

Discuss this help topic in SecureBlackbox Forum