|
@@ -17,7 +17,7 @@ namespace Renci.SshNet
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Gets the key files used for authentication.
|
|
/// Gets the key files used for authentication.
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
- public ICollection<IHostAlgorithmsProvider> KeyFiles { get; private set; }
|
|
|
|
|
|
|
+ public ICollection<IPrivateKeySource> KeyFiles { get; private set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Initializes a new instance of the <see cref="PrivateKeyConnectionInfo"/> class.
|
|
/// Initializes a new instance of the <see cref="PrivateKeyConnectionInfo"/> class.
|
|
@@ -41,7 +41,7 @@ namespace Renci.SshNet
|
|
|
/// <param name="port">Connection port.</param>
|
|
/// <param name="port">Connection port.</param>
|
|
|
/// <param name="username">Connection username.</param>
|
|
/// <param name="username">Connection username.</param>
|
|
|
/// <param name="keyFiles">Connection key files.</param>
|
|
/// <param name="keyFiles">Connection key files.</param>
|
|
|
- public PrivateKeyConnectionInfo(string host, int port, string username, params IHostAlgorithmsProvider[] keyFiles)
|
|
|
|
|
|
|
+ public PrivateKeyConnectionInfo(string host, int port, string username, params IPrivateKeySource[] keyFiles)
|
|
|
: this(host, port, username, ProxyTypes.None, string.Empty, 0, string.Empty, string.Empty, keyFiles)
|
|
: this(host, port, username, ProxyTypes.None, string.Empty, 0, string.Empty, string.Empty, keyFiles)
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
@@ -56,7 +56,7 @@ namespace Renci.SshNet
|
|
|
/// <param name="proxyHost">The proxy host.</param>
|
|
/// <param name="proxyHost">The proxy host.</param>
|
|
|
/// <param name="proxyPort">The proxy port.</param>
|
|
/// <param name="proxyPort">The proxy port.</param>
|
|
|
/// <param name="keyFiles">The key files.</param>
|
|
/// <param name="keyFiles">The key files.</param>
|
|
|
- public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IHostAlgorithmsProvider[] keyFiles)
|
|
|
|
|
|
|
+ public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IPrivateKeySource[] keyFiles)
|
|
|
: this(host, port, username, proxyType, proxyHost, proxyPort, string.Empty, string.Empty, keyFiles)
|
|
: this(host, port, username, proxyType, proxyHost, proxyPort, string.Empty, string.Empty, keyFiles)
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
@@ -72,7 +72,7 @@ namespace Renci.SshNet
|
|
|
/// <param name="proxyPort">The proxy port.</param>
|
|
/// <param name="proxyPort">The proxy port.</param>
|
|
|
/// <param name="proxyUsername">The proxy username.</param>
|
|
/// <param name="proxyUsername">The proxy username.</param>
|
|
|
/// <param name="keyFiles">The key files.</param>
|
|
/// <param name="keyFiles">The key files.</param>
|
|
|
- public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IHostAlgorithmsProvider[] keyFiles)
|
|
|
|
|
|
|
+ public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IPrivateKeySource[] keyFiles)
|
|
|
: this(host, port, username, proxyType, proxyHost, proxyPort, proxyUsername, string.Empty, keyFiles)
|
|
: this(host, port, username, proxyType, proxyHost, proxyPort, proxyUsername, string.Empty, keyFiles)
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
@@ -86,7 +86,7 @@ namespace Renci.SshNet
|
|
|
/// <param name="proxyHost">The proxy host.</param>
|
|
/// <param name="proxyHost">The proxy host.</param>
|
|
|
/// <param name="proxyPort">The proxy port.</param>
|
|
/// <param name="proxyPort">The proxy port.</param>
|
|
|
/// <param name="keyFiles">The key files.</param>
|
|
/// <param name="keyFiles">The key files.</param>
|
|
|
- public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IHostAlgorithmsProvider[] keyFiles)
|
|
|
|
|
|
|
+ public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IPrivateKeySource[] keyFiles)
|
|
|
: this(host, DefaultPort, username, proxyType, proxyHost, proxyPort, string.Empty, string.Empty, keyFiles)
|
|
: this(host, DefaultPort, username, proxyType, proxyHost, proxyPort, string.Empty, string.Empty, keyFiles)
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
@@ -101,7 +101,7 @@ namespace Renci.SshNet
|
|
|
/// <param name="proxyPort">The proxy port.</param>
|
|
/// <param name="proxyPort">The proxy port.</param>
|
|
|
/// <param name="proxyUsername">The proxy username.</param>
|
|
/// <param name="proxyUsername">The proxy username.</param>
|
|
|
/// <param name="keyFiles">The key files.</param>
|
|
/// <param name="keyFiles">The key files.</param>
|
|
|
- public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IHostAlgorithmsProvider[] keyFiles)
|
|
|
|
|
|
|
+ public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IPrivateKeySource[] keyFiles)
|
|
|
: this(host, DefaultPort, username, proxyType, proxyHost, proxyPort, proxyUsername, string.Empty, keyFiles)
|
|
: this(host, DefaultPort, username, proxyType, proxyHost, proxyPort, proxyUsername, string.Empty, keyFiles)
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
@@ -117,7 +117,7 @@ namespace Renci.SshNet
|
|
|
/// <param name="proxyUsername">The proxy username.</param>
|
|
/// <param name="proxyUsername">The proxy username.</param>
|
|
|
/// <param name="proxyPassword">The proxy password.</param>
|
|
/// <param name="proxyPassword">The proxy password.</param>
|
|
|
/// <param name="keyFiles">The key files.</param>
|
|
/// <param name="keyFiles">The key files.</param>
|
|
|
- public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IHostAlgorithmsProvider[] keyFiles)
|
|
|
|
|
|
|
+ public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IPrivateKeySource[] keyFiles)
|
|
|
: this(host, DefaultPort, username, proxyType, proxyHost, proxyPort, proxyUsername, proxyPassword, keyFiles)
|
|
: this(host, DefaultPort, username, proxyType, proxyHost, proxyPort, proxyUsername, proxyPassword, keyFiles)
|
|
|
{
|
|
{
|
|
|
}
|
|
}
|
|
@@ -134,10 +134,10 @@ namespace Renci.SshNet
|
|
|
/// <param name="proxyUsername">The proxy username.</param>
|
|
/// <param name="proxyUsername">The proxy username.</param>
|
|
|
/// <param name="proxyPassword">The proxy password.</param>
|
|
/// <param name="proxyPassword">The proxy password.</param>
|
|
|
/// <param name="keyFiles">The key files.</param>
|
|
/// <param name="keyFiles">The key files.</param>
|
|
|
- public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IHostAlgorithmsProvider[] keyFiles)
|
|
|
|
|
|
|
+ public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IPrivateKeySource[] keyFiles)
|
|
|
: base(host, port, username, proxyType, proxyHost, proxyPort, proxyUsername, proxyPassword, new PrivateKeyAuthenticationMethod(username, keyFiles))
|
|
: base(host, port, username, proxyType, proxyHost, proxyPort, proxyUsername, proxyPassword, new PrivateKeyAuthenticationMethod(username, keyFiles))
|
|
|
{
|
|
{
|
|
|
- KeyFiles = new Collection<IHostAlgorithmsProvider>(keyFiles);
|
|
|
|
|
|
|
+ KeyFiles = new Collection<IPrivateKeySource>(keyFiles);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|