Class PrivateKeyConnectionInfo
Provides connection information when private key authentication method is used.
public class PrivateKeyConnectionInfo : ConnectionInfo, IDisposable
- Inheritance
-
PrivateKeyConnectionInfo
- Implements
- Inherited Members
Constructors
PrivateKeyConnectionInfo(string, int, string, params IPrivateKeySource[])
Initializes a new instance of the PrivateKeyConnectionInfo class.
public PrivateKeyConnectionInfo(string host, int port, string username, params IPrivateKeySource[] keyFiles)
Parameters
host
stringConnection host.
port
intConnection port.
username
stringConnection username.
keyFiles
IPrivateKeySource[]Connection key files.
PrivateKeyConnectionInfo(string, int, string, ProxyTypes, string, int, params IPrivateKeySource[])
Initializes a new instance of the PrivateKeyConnectionInfo class.
public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IPrivateKeySource[] keyFiles)
Parameters
host
stringConnection host.
port
intThe port.
username
stringConnection username.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
keyFiles
IPrivateKeySource[]The key files.
PrivateKeyConnectionInfo(string, int, string, ProxyTypes, string, int, string, params IPrivateKeySource[])
Initializes a new instance of the PrivateKeyConnectionInfo class.
public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IPrivateKeySource[] keyFiles)
Parameters
host
stringConnection host.
port
intThe port.
username
stringConnection username.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
keyFiles
IPrivateKeySource[]The key files.
PrivateKeyConnectionInfo(string, int, string, ProxyTypes, string, int, string, string, params IPrivateKeySource[])
Initializes a new instance of the PrivateKeyConnectionInfo class.
public PrivateKeyConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IPrivateKeySource[] keyFiles)
Parameters
host
stringConnection host.
port
intThe port.
username
stringConnection username.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
proxyPassword
stringThe proxy password.
keyFiles
IPrivateKeySource[]The key files.
PrivateKeyConnectionInfo(string, string, params PrivateKeyFile[])
Initializes a new instance of the PrivateKeyConnectionInfo class.
public PrivateKeyConnectionInfo(string host, string username, params PrivateKeyFile[] keyFiles)
Parameters
host
stringConnection host.
username
stringConnection username.
keyFiles
PrivateKeyFile[]Connection key files.
PrivateKeyConnectionInfo(string, string, ProxyTypes, string, int, params IPrivateKeySource[])
Initializes a new instance of the PrivateKeyConnectionInfo class.
public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, params IPrivateKeySource[] keyFiles)
Parameters
host
stringConnection host.
username
stringConnection username.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
keyFiles
IPrivateKeySource[]The key files.
PrivateKeyConnectionInfo(string, string, ProxyTypes, string, int, string, params IPrivateKeySource[])
Initializes a new instance of the PrivateKeyConnectionInfo class.
public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, params IPrivateKeySource[] keyFiles)
Parameters
host
stringConnection host.
username
stringConnection username.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
keyFiles
IPrivateKeySource[]The key files.
PrivateKeyConnectionInfo(string, string, ProxyTypes, string, int, string, string, params IPrivateKeySource[])
Initializes a new instance of the PrivateKeyConnectionInfo class.
public PrivateKeyConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, params IPrivateKeySource[] keyFiles)
Parameters
host
stringConnection host.
username
stringConnection username.
proxyType
ProxyTypesType of the proxy.
proxyHost
stringThe proxy host.
proxyPort
intThe proxy port.
proxyUsername
stringThe proxy username.
proxyPassword
stringThe proxy password.
keyFiles
IPrivateKeySource[]The key files.
Properties
KeyFiles
Gets the key files used for authentication.
public ICollection<IPrivateKeySource> KeyFiles { get; }
Property Value
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.
~PrivateKeyConnectionInfo()
Finalizes an instance of the PrivateKeyConnectionInfo class.
protected ~PrivateKeyConnectionInfo()