Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

This event is fired when the client requested public key authentication.


    event TSSHAuthPublicKeyEvent OnAuthPublicKey;
    delegate void TSSHAuthPublicKeyEvent(Object Sender, string Username, TElSSHKey Key, ref bool Accept);

    Event OnAuthPublicKey As TSSHAuthPublicKeyEvent
    Delegate Sub TSSHAuthPublicKeyEvent(ByVal Sender As Object, ByVal Username As String, ByVal Key As TElSSHKey, ByRef Accept As Boolean)

    property OnAuthPublicKey: TSSHAuthPublicKeyEvent;
    TSSHAuthPublicKeyEvent = procedure(Sender : TObject; const Username : string; Key: TElSSHKey; var Accept : boolean) of object;

    void get_OnAuthPublicKey(TSSHAuthPublicKeyEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnAuthPublicKey(TSSHAuthPublicKeyEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHAuthPublicKeyEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcUsername, int32_t szUsername, TElSSHKeyHandle Key, int8_t &Accept);

    TSSHAuthPublicKeyEvent|callable|NULL get_OnAuthPublicKey()
    void set_OnAuthPublicKey(TSSHAuthPublicKeyEvent|callable|NULL $Value)
    callable TSSHAuthPublicKeyEvent(TObject $Sender, string $Username, TElSSHKey $Key, bool &$Accept)

    TSSHAuthPublicKeyEvent getOnAuthPublicKey();
    void setOnAuthPublicKey(TSSHAuthPublicKeyEvent Value);
    TSSHAuthPublicKeyEvent.Callback OnAuthPublicKey = new TSSHAuthPublicKeyEvent.Callback() {
        public void TSSHAuthPublicKeyEventCallback(TObject Sender, String Username, TElSSHKey Key, TSBBoolean Accept) {


  • Username - the name of the client being authenticated
  • Key - the key sent by client for checking.
  • Accept - set this parameter to True if the key has been found in the correspondence list.
  • pcUsername - the name of the client being authenticated
  • szUsername - the length of pcUsername.


    Gives us a key for checking. Handler has to check that the key corresponds to Username.

See also:     OnAuthPassword    

Discuss this help topic in SecureBlackbox Forum