Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

This event is fired when client requested possibility for authentication.


    event TSSHAuthAttemptEvent OnAuthAttempt;
    delegate void TSSHAuthAttemptEvent(object Sender, string Username, int AuthType, ref bool Accept)

    Event OnAuthAttempt As TSSHAuthAttemptEvent
    Delegate Sub TSSHAuthAttemptEvent(ByVal Sender As Object, ByVal Username As String, ByVal AuthType As Integer, ByRef Accept As Boolean)

    property OnAuthAttempt: TSSHAuthAttemptEvent;
    TSSHAuthAttemptEvent = procedure(Sender : TObject; const Username : string; AuthType : integer; var Accept: boolean) of object;

    void get_OnAuthAttempt(TSSHAuthAttemptEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnAuthAttempt(TSSHAuthAttemptEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHAuthAttemptEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcUsername, int32_t szUsername, int32_t AuthType, int8_t &Accept);

    TSSHAuthAttemptEvent|callable|NULL get_OnAuthAttempt()
    void set_OnAuthAttempt(TSSHAuthAttemptEvent|callable|NULL $Value)
    callable TSSHAuthAttemptEvent(TObject $Sender, string $Username, integer $AuthType, bool &$Accept)


  • Username - username (login) on the server
  • AuthType - the type of authentication that the client wants to use
  • Accept - set this parameter to True if you want to allow the client to use this method.Otherwise authentication attempt will fail for the client.
  • pcUsername - username (login) on the server
  • szUsername - the length of pcUsername.

Authentication type values


    This event is fired for each client's attempt to authenticate.

See also:     OnAuthFailed    

Discuss this help topic in SecureBlackbox Forum