Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnAuthAttempt

TElSSHServer     See also     


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


This event is fired when client requested possibility for authentication.

Declaration

[C#]
    event TSSHAuthAttemptEvent OnAuthAttempt;
    delegate void TSSHAuthAttemptEvent(Object Sender, string Username, int AuthType, ref bool Accept);

[VB.NET]
    Event OnAuthAttempt As TSSHAuthAttemptEvent
    Delegate Sub TSSHAuthAttemptEvent(ByVal Sender As Object, ByVal Username As String, ByVal AuthType As Integer, ByRef Accept As Boolean)

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

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

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

[Java]
    TSSHAuthAttemptEvent getOnAuthAttempt();
    void setOnAuthAttempt(TSSHAuthAttemptEvent Value);
    TSSHAuthAttemptEvent.Callback OnAuthAttempt = new TSSHAuthAttemptEvent.Callback() {
        public void TSSHAuthAttemptEventCallback(TObject Sender, String Username, int AuthType, TSBBoolean Accept) {
            //...
        }
    }

Parameters

  • 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

Description

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

See also:     OnAuthFailed    

Discuss this help topic in SecureBlackbox Forum