コード例 #1
0
 /// <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)
 {
 }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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)
 {
 }
コード例 #4
0
 /// <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;
 }
コード例 #5
0
 /// <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)
 {
 }
コード例 #6
0
 /// <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)
 {
 }
コード例 #7
0
 /// <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;
 }
コード例 #8
0
 /// <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;
 }