Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.OnPasswordChangeRequest

TElSimpleSFTPClient     See also     


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


This event is fired if password change is requested.

Declaration

[C#/Java]
    event TSSHPasswordChangeRequestEvent OnPasswordChangeRequest;
    delegate void TSSHPasswordChangeRequestEvent(Object Sender, string Prompt, ref string NewPassword, ref bool Cancel);

[VB.NET]
    Event OnPasswordChangeRequest As TSSHPasswordChangeRequestEvent
    Delegate Sub TSSHPasswordChangeRequestEvent(ByVal Sender As Object, ByVal Prompt As String, ByRef NewPassword As String, ByRef Cancel As Boolean)

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

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

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

Parameters

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

Description

    This event is fired by TElSimpleSFTPClient 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