Class PasswordConnectionInfo
Provides connection information when password authentication method is used.
public class PasswordConnectionInfo : ConnectionInfo, IDisposable
- Inheritance
-
PasswordConnectionInfo
- Implements
- Inherited Members
Constructors
PasswordConnectionInfo(string, int, string, byte[])
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password)
Parameters
host
stringConnection host.
port
intConnection port.
username
stringConnection username.
password
byte[]Connection password.
Exceptions
- ArgumentNullException
password
is null.- ArgumentException
host
is invalid, orusername
is null or contains only whitespace characters.- ArgumentOutOfRangeException
PasswordConnectionInfo(string, int, string, byte[], ProxyTypes, string, int)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort)
Parameters
host
stringConnection host.
port
intThe port.
username
stringConnection username.
password
byte[]Connection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
PasswordConnectionInfo(string, int, string, byte[], ProxyTypes, string, int, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)
Parameters
host
stringConnection host.
port
intThe port.
username
stringConnection username.
password
byte[]Connection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
PasswordConnectionInfo(string, int, string, byte[], ProxyTypes, string, int, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)
Parameters
host
stringConnection host.
port
intThe port.
username
stringConnection username.
password
byte[]Connection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
proxyPassword
stringThe proxy password.
PasswordConnectionInfo(string, int, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, string password)
Parameters
host
stringConnection host.
port
intConnection port.
username
stringConnection username.
password
stringConnection password.
Exceptions
- ArgumentNullException
password
is null.- ArgumentException
host
is invalid, orusername
is null or contains only whitespace characters.- ArgumentOutOfRangeException
PasswordConnectionInfo(string, int, string, string, ProxyTypes, string, int)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort)
Parameters
host
stringConnection host.
port
intThe port.
username
stringConnection username.
password
stringConnection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
PasswordConnectionInfo(string, int, string, string, ProxyTypes, string, int, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)
Parameters
host
stringConnection host.
port
intThe port.
username
stringConnection username.
password
stringConnection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
PasswordConnectionInfo(string, string, byte[])
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password)
Parameters
host
stringConnection host.
username
stringConnection username.
password
byte[]Connection password.
PasswordConnectionInfo(string, string, byte[], ProxyTypes, string, int)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort)
Parameters
host
stringConnection host.
username
stringConnection username.
password
byte[]Connection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
PasswordConnectionInfo(string, string, byte[], ProxyTypes, string, int, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)
Parameters
host
stringConnection host.
username
stringConnection username.
password
byte[]Connection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
PasswordConnectionInfo(string, string, byte[], ProxyTypes, string, int, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)
Parameters
host
stringConnection host.
username
stringConnection username.
password
byte[]Connection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
proxyPassword
stringThe proxy password.
PasswordConnectionInfo(string, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password)
Parameters
host
stringConnection host.
username
stringConnection username.
password
stringConnection password.
Exceptions
- ArgumentNullException
password
is null.- ArgumentException
host
is invalid, orusername
is null or contains only whitespace characters.
PasswordConnectionInfo(string, string, string, ProxyTypes, string, int)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort)
Parameters
host
stringConnection host.
username
stringConnection username.
password
stringConnection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
PasswordConnectionInfo(string, string, string, ProxyTypes, string, int, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)
Parameters
host
stringConnection host.
username
stringConnection username.
password
stringConnection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
PasswordConnectionInfo(string, string, string, ProxyTypes, string, int, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)
Parameters
host
stringConnection host.
username
stringConnection username.
password
stringConnection password.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
proxyPassword
stringThe 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
disposing
booltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~PasswordConnectionInfo()
Finalizes an instance of the PasswordConnectionInfo class.
protected ~PasswordConnectionInfo()
Events
PasswordExpired
Occurs when user's password has expired and needs to be changed.
public event EventHandler<AuthenticationPasswordChangeEventArgs> PasswordExpired