/// <summary> /// Initializes a new instance of the <see cref="PasswordConnectionInfo"/> class. /// </summary> /// <param name="host">Connection host.</param> /// <param name="username">Connection username.</param> /// <param name="proxyType">Type of the proxy.</param> /// <param name="proxyHost">The proxy host.</param> /// <param name="proxyPort">The proxy port.</param> /// <param name="proxyUsername">The proxy username.</param> /// <param name="protocol">The key files.</param> public AgentConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, IAgentProtocol protocol) : this(host, 22, username, proxyType, proxyHost, proxyPort, proxyUsername, string.Empty, protocol) { }
/// <summary> /// Initializes a new instance of the <see cref="PasswordConnectionInfo"/> class. /// </summary> /// <param name="host">Connection host.</param> /// <param name="port">The port.</param> /// <param name="username">Connection username.</param> /// <param name="proxyType">Type of the proxy.</param> /// <param name="proxyHost">The proxy host.</param> /// <param name="proxyPort">The proxy port.</param> /// <param name="proxyUsername">The proxy username.</param> /// <param name="proxyPassword">The proxy password.</param> /// <param name="protocol">The key files.</param> public AgentConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, IAgentProtocol protocol) : base(host, port, username, proxyType, proxyHost, proxyPort, proxyUsername, proxyPassword, new AgentAuthenticationMethod(username, protocol)) { this.Protocol = protocol; }
/// <summary> /// Initializes a new instance of the <see cref="PrivateKeyConnectionInfo"/> class. /// </summary> /// <param name="host">Connection host.</param> /// <param name="port">Connection port.</param> /// <param name="username">Connection username.</param> /// <param name="protocol">Connection key files.</param> public AgentConnectionInfo(string host, int port, string username, IAgentProtocol protocol) : this(host, port, username, ProxyTypes.None, string.Empty, 0, string.Empty, string.Empty, protocol) { }
/// <summary> /// Initializes a new instance of the <see cref="PrivateKeyAuthenticationMethod"/> class. /// </summary> /// <param name="username">The username.</param> /// <param name="protocol">The key files.</param> /// <exception cref="ArgumentException"><paramref name="username"/> is whitespace or null.</exception> public AgentAuthenticationMethod(string username, IAgentProtocol protocol) : base(username) { Protocol = protocol; }
/// <summary> /// Initializes a new instance of the <see cref="PasswordConnectionInfo"/> class. /// </summary> /// <param name="host">Connection host.</param> /// <param name="username">Connection username.</param> /// <param name="proxyType">Type of the proxy.</param> /// <param name="proxyHost">The proxy host.</param> /// <param name="proxyPort">The proxy port.</param> /// <param name="proxyUsername">The proxy username.</param> /// <param name="keyFiles">The key files.</param> public AgentConnectionInfo(string host, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, IAgentProtocol protocol) : this(host, 22, username, proxyType, proxyHost, proxyPort, proxyUsername, string.Empty, protocol) { }
/// <summary> /// Initializes a new instance of the <see cref="PrivateKeyConnectionInfo"/> class. /// </summary> /// <param name="host">Connection host.</param> /// <param name="port">Connection port.</param> /// <param name="username">Connection username.</param> /// <param name="keyFiles">Connection key files.</param> public AgentConnectionInfo(string host, int port, string username, IAgentProtocol protocol) : this(host, port, username, ProxyTypes.None, string.Empty, 0, string.Empty, string.Empty, protocol) { }
/// <summary> /// Initializes a new instance of the <see cref="PasswordConnectionInfo"/> class. /// </summary> /// <param name="host">Connection host.</param> /// <param name="port">The port.</param> /// <param name="username">Connection username.</param> /// <param name="proxyType">Type of the proxy.</param> /// <param name="proxyHost">The proxy host.</param> /// <param name="proxyPort">The proxy port.</param> /// <param name="proxyUsername">The proxy username.</param> /// <param name="proxyPassword">The proxy password.</param> /// <param name="keyFiles">The key files.</param> public AgentConnectionInfo(string host, int port, string username, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword, IAgentProtocol protocol) : base(host, port, username, proxyType, proxyHost, proxyPort, proxyUsername, proxyPassword, new AgentAuthenticationMethod(username,protocol)) { this.Protocol = protocol; }
/// <summary> /// Initializes a new instance of the <see cref="PrivateKeyAuthenticationMethod"/> class. /// </summary> /// <param name="username">The username.</param> /// <param name="keyFiles">The key files.</param> /// <exception cref="ArgumentException"><paramref name="username"/> is whitespace or null.</exception> public AgentAuthenticationMethod(string username, IAgentProtocol protocol) : base(username) { this.Protocol = protocol; }