| | | 1 | | namespace Renci.SshNet.Common |
| | | 2 | | { |
| | | 3 | | /// <summary> |
| | | 4 | | /// Provides prompt information when <see cref="KeyboardInteractiveConnectionInfo.AuthenticationPrompt"/> is raised. |
| | | 5 | | /// </summary> |
| | | 6 | | public class AuthenticationPrompt |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Initializes a new instance of the <see cref="AuthenticationPrompt"/> class. |
| | | 10 | | /// </summary> |
| | | 11 | | /// <param name="id">The sequence id.</param> |
| | | 12 | | /// <param name="isEchoed">if set to <see langword="true"/> the user input should be echoed.</param> |
| | | 13 | | /// <param name="request">The request.</param> |
| | 6 | 14 | | public AuthenticationPrompt(int id, bool isEchoed, string request) |
| | 6 | 15 | | { |
| | 6 | 16 | | Id = id; |
| | 6 | 17 | | IsEchoed = isEchoed; |
| | 6 | 18 | | Request = request; |
| | 6 | 19 | | } |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Gets the prompt sequence id. |
| | | 23 | | /// </summary> |
| | 6 | 24 | | public int Id { get; } |
| | | 25 | | |
| | | 26 | | /// <summary> |
| | | 27 | | /// Gets a value indicating whether the user input should be echoed as characters are typed. |
| | | 28 | | /// </summary> |
| | | 29 | | /// <value> |
| | | 30 | | /// <see langword="true"/> if the user input should be echoed as characters are typed; otherwise, <see langwor |
| | | 31 | | /// </value> |
| | 0 | 32 | | public bool IsEchoed { get; } |
| | | 33 | | |
| | | 34 | | /// <summary> |
| | | 35 | | /// Gets server information request. |
| | | 36 | | /// </summary> |
| | 5 | 37 | | public string Request { get; } |
| | | 38 | | |
| | | 39 | | /// <summary> |
| | | 40 | | /// Gets or sets server information response. |
| | | 41 | | /// </summary> |
| | | 42 | | /// <value> |
| | | 43 | | /// The response. |
| | | 44 | | /// </value> |
| | 12 | 45 | | public string Response { get; set; } |
| | | 46 | | } |
| | | 47 | | } |