mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-10-15 09:01:34 +00:00
9125534cff
Add ability to specify password as byte array which can be cleaned up later for security reasons
31 lines
917 B
C#
31 lines
917 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Renci.SshNet.Common
|
|
{
|
|
/// <summary>
|
|
/// Provides data for <see cref="Renci.SshNet.PasswordConnectionInfo.PasswordExpired"/> event.
|
|
/// </summary>
|
|
public class AuthenticationPasswordChangeEventArgs : AuthenticationEventArgs
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the new password.
|
|
/// </summary>
|
|
/// <value>
|
|
/// The new password.
|
|
/// </value>
|
|
public byte[] NewPassword { get; set; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="AuthenticationPasswordChangeEventArgs"/> class.
|
|
/// </summary>
|
|
/// <param name="username">The username.</param>
|
|
public AuthenticationPasswordChangeEventArgs(string username)
|
|
: base(username)
|
|
{
|
|
}
|
|
}
|
|
}
|