Discuss this help topic in SecureBlackbox Forum


TElSimpleSSHClient     See also     

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

This event is fired if password change is requested.


    event TSSHPasswordChangeRequestEvent OnPasswordChangeRequest;
    delegate void TSSHPasswordChangeRequestEvent(Object Sender, string Prompt, ref string NewPassword, ref bool Cancel);

    Event OnPasswordChangeRequest As TSSHPasswordChangeRequestEvent
    Delegate Sub TSSHPasswordChangeRequestEvent(ByVal Sender As Object, ByVal Prompt As String, ByRef NewPassword As String, ByRef Cancel As Boolean)

    property OnPasswordChangeRequest : TSSHPasswordChangeRequestEvent;
    TSSHPasswordChangeRequestEvent = procedure (Sender: TObject; const Prompt : string; var NewPassword : string; var Cancel : boolean) of object;

    void get_OnPasswordChangeRequest(TSSHPasswordChangeRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnPasswordChangeRequest(TSSHPasswordChangeRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHPasswordChangeRequestEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPrompt, int32_t szPrompt, char * pcNewPassword, int32_t &szNewPassword, int8_t &Cancel);

    TSSHPasswordChangeRequestEvent|callable|NULL get_OnPasswordChangeRequest()
    void set_OnPasswordChangeRequest(TSSHPasswordChangeRequestEvent|callable|NULL $Value)
    callable TSSHPasswordChangeRequestEvent(TObject $Sender, string $Prompt, string &$NewPassword, bool &$Cancel)

    TSSHPasswordChangeRequestEvent getOnPasswordChangeRequest();
    void setOnPasswordChangeRequest(TSSHPasswordChangeRequestEvent Value);
    TSSHPasswordChangeRequestEvent.Callback OnPasswordChangeRequest = new TSSHPasswordChangeRequestEvent.Callback() {
        public void TSSHPasswordChangeRequestEventCallback(TObject Sender, String Prompt, TSBString NewPassword, TSBBoolean Cancel) {


  • Prompt - password change prompt
  • NewPassword - new password
  • Cancel - specifies, whether to cancel the request
  • pcPrompt - password change prompt
  • szPrompt - the length of pcPrompt.
  • pcNewPassword - new password
  • szNewPassword - the length of pcNewPassword.


    This event is fired by TElSimpleSSHClient if password change is requested by the server, or asked by the client. User must provide the new password via NewPassword parameter, or cancel the request.

See also:     RequestPasswordChange    

Discuss this help topic in SecureBlackbox Forum