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
hoststringConnection host.
portintConnection port.
usernamestringConnection username.
keyFilesIPrivateKeySource[]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
hoststringConnection host.
portintThe port.
usernamestringConnection username.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
keyFilesIPrivateKeySource[]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
hoststringConnection host.
portintThe port.
usernamestringConnection username.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
keyFilesIPrivateKeySource[]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
hoststringConnection host.
portintThe port.
usernamestringConnection username.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
proxyPasswordstringThe proxy password.
keyFilesIPrivateKeySource[]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
hoststringConnection host.
usernamestringConnection username.
keyFilesPrivateKeyFile[]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
hoststringConnection host.
usernamestringConnection username.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
keyFilesIPrivateKeySource[]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
hoststringConnection host.
usernamestringConnection username.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
keyFilesIPrivateKeySource[]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
hoststringConnection host.
usernamestringConnection username.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
proxyPasswordstringThe proxy password.
keyFilesIPrivateKeySource[]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
disposingbooltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~PrivateKeyConnectionInfo()
Finalizes an instance of the PrivateKeyConnectionInfo class.
protected ~PrivateKeyConnectionInfo()