Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnAuthPublicKey

TElSSHServer     See also     


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


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

Declaration

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

[VB.NET]
    Event OnAuthPublicKey As TSSHAuthPublicKeyEvent
    Delegate Sub TSSHAuthPublicKeyEvent(ByVal Sender As Object, ByVal Username As String, ByVal Key As TElSSHKey, ByRef Accept As Boolean)

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

[C++]
    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);

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

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

Parameters

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

Description

    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