Provides data for Renci.SshNet.PasswordConnectionInfo.PasswordExpired event.
Inheritance: AuthenticationEventArgs
 public void NewPasswordTest()
 {
     string username = string.Empty; // TODO: Initialize to an appropriate value
     AuthenticationPasswordChangeEventArgs target = new AuthenticationPasswordChangeEventArgs(username); // TODO: Initialize to an appropriate value
     byte[] expected = null; // TODO: Initialize to an appropriate value
     byte[] actual;
     target.NewPassword = expected;
     actual = target.NewPassword;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
        private void Session_MessageReceived(object sender, MessageEventArgs<Message> e)
        {
            if (e.Message is PasswordChangeRequiredMessage)
            {
                this._session.UnRegisterMessage("SSH_MSG_USERAUTH_PASSWD_CHANGEREQ");

                this.ExecuteThread(() =>
                {
                    try
                    {
                        var eventArgs = new AuthenticationPasswordChangeEventArgs(this.Username);

                        //  Raise an event to allow user to supply a new password
                        if (this.PasswordExpired != null)
                        {
                            this.PasswordExpired(this, eventArgs);
                        }

                        //  Send new authentication request with new password
                        this._session.SendMessage(new RequestMessagePassword(ServiceName.Connection, this.Username, this._password, eventArgs.NewPassword));
                    }
                    catch (Exception exp)
                    {
                        this._exception = exp;
                        this._authenticationCompleted.Set();
                    }
                });
            }
        }
 private void AuthenticationMethod_PasswordExpired(object sender, AuthenticationPasswordChangeEventArgs e)
 {
     if (this.PasswordExpired != null)
     {
         this.PasswordExpired(sender, e);
     }
 }
 public void AuthenticationPasswordChangeEventArgsConstructorTest()
 {
     string username = string.Empty; // TODO: Initialize to an appropriate value
     AuthenticationPasswordChangeEventArgs target = new AuthenticationPasswordChangeEventArgs(username);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
 private void ConnectionInfoPasswordExpired(object sender, AuthenticationPasswordChangeEventArgs e)
 {
     Log("New password required");
 }