SecureBlackbox Lite 2020 .NET Edition

Questions / Feedback?

PasswordChangeRequest Event

This event is fired when a password change is requested.

Syntax

public event OnPasswordChangeRequestHandler OnPasswordChangeRequest;

public delegate void OnPasswordChangeRequestHandler(object sender, SshclientPasswordChangeRequestEventArgs e);

public class SshclientPasswordChangeRequestEventArgs : EventArgs {
  public string Prompt { get; }
  public string NewPassword { get; set; }
  public bool Cancel { get; set; }
}
Public Event OnPasswordChangeRequest As OnPasswordChangeRequestHandler

Public Delegate Sub OnPasswordChangeRequestHandler(sender As Object, e As SshclientPasswordChangeRequestEventArgs)

Public Class SshclientPasswordChangeRequestEventArgs Inherits EventArgs
  Public ReadOnly Property Prompt As String
  Public Property NewPassword As String
  Public Property Cancel As Boolean
End Class

Remarks

This event is fired by the component when a password change is requested by the server. Prompt contains the password prompt message. Handler should either provide the new password via NewPassword, or deny the request by setting Cancel to true.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox Lite 2020 .NET Edition - Version 20.0 [Build 8166]