Class PasswordConnectionInfo
- Namespace
- Renci.SshNet
- Assembly
- Renci.SshNet.dll
Provides connection information when password authentication method is used.
public class PasswordConnectionInfo : ConnectionInfo, IDisposableInheritance
Implements
Inherited Members
Constructors
PasswordConnectionInfo(string, string, string)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password)Parameters
hoststring-
Connection host.
usernamestring-
Connection username.
passwordstring-
Connection password.
Exceptions
- ArgumentNullException
-
passwordis null. - ArgumentException
-
hostis invalid, orusernameis null or contains only whitespace characters.
PasswordConnectionInfo(string, int, string, string)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, string password)Parameters
hoststring-
Connection host.
portint-
Connection port.
usernamestring-
Connection username.
passwordstring-
Connection password.
Exceptions
- ArgumentNullException
-
passwordis null. - ArgumentException
-
hostis invalid, orusernameis null or contains only whitespace characters. - ArgumentOutOfRangeException
-
portis not within System.Net.IPEndPoint.MinPort and System.Net.IPEndPoint.MaxPort.
PasswordConnectionInfo(string, int, string, string, ProxyTypes, string, int)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort)Parameters
hoststring-
Connection host.
portint-
The port.
usernamestring-
Connection username.
passwordstring-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
PasswordConnectionInfo(string, int, string, string, ProxyTypes, string, int, string)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)Parameters
hoststring-
Connection host.
portint-
The port.
usernamestring-
Connection username.
passwordstring-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
PasswordConnectionInfo(string, string, string, ProxyTypes, string, int)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort)Parameters
hoststring-
Connection host.
usernamestring-
Connection username.
passwordstring-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
PasswordConnectionInfo(string, string, string, ProxyTypes, string, int, string)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)Parameters
hoststring-
Connection host.
usernamestring-
Connection username.
passwordstring-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
PasswordConnectionInfo(string, string, string, ProxyTypes, string, int, string, string)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)Parameters
hoststring-
Connection host.
usernamestring-
Connection username.
passwordstring-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
proxyPasswordstring-
The proxy password.
PasswordConnectionInfo(string, string, byte[])
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password)Parameters
hoststring-
Connection host.
usernamestring-
Connection username.
passwordbyte[]-
Connection password.
PasswordConnectionInfo(string, int, string, byte[])
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password)Parameters
hoststring-
Connection host.
portint-
Connection port.
usernamestring-
Connection username.
passwordbyte[]-
Connection password.
Exceptions
- ArgumentNullException
-
passwordis null. - ArgumentException
-
hostis invalid, orusernameis null or contains only whitespace characters. - ArgumentOutOfRangeException
-
portis not within System.Net.IPEndPoint.MinPort and System.Net.IPEndPoint.MaxPort.
PasswordConnectionInfo(string, int, string, byte[], ProxyTypes, string, int)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort)Parameters
hoststring-
Connection host.
portint-
The port.
usernamestring-
Connection username.
passwordbyte[]-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
PasswordConnectionInfo(string, int, string, byte[], ProxyTypes, string, int, string)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)Parameters
hoststring-
Connection host.
portint-
The port.
usernamestring-
Connection username.
passwordbyte[]-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
PasswordConnectionInfo(string, string, byte[], ProxyTypes, string, int)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort)Parameters
hoststring-
Connection host.
usernamestring-
Connection username.
passwordbyte[]-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
PasswordConnectionInfo(string, string, byte[], ProxyTypes, string, int, string)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)Parameters
hoststring-
Connection host.
usernamestring-
Connection username.
passwordbyte[]-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
PasswordConnectionInfo(string, string, byte[], ProxyTypes, string, int, string, string)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)Parameters
hoststring-
Connection host.
usernamestring-
Connection username.
passwordbyte[]-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
proxyPasswordstring-
The proxy password.
PasswordConnectionInfo(string, int, string, byte[], ProxyTypes, string, int, string, string)
Initializes a new instance of the Renci.SshNet.PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)Parameters
hoststring-
Connection host.
portint-
The port.
usernamestring-
Connection username.
passwordbyte[]-
Connection password.
proxyTypeProxyTypes-
Type of the proxy.
proxyHoststring-
The proxy host.
proxyPortint-
The proxy port.
proxyUsernamestring-
The proxy username.
proxyPasswordstring-
The proxy password.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
true to release both managed and unmanaged resources; false to release only unmanaged resources.
PasswordExpired
Occurs when user's password has expired and needs to be changed.
public event EventHandler<AuthenticationPasswordChangeEventArgs> PasswordExpired