| | | 1 | | using System.Collections.Generic; |
| | | 2 | | |
| | | 3 | | namespace Renci.SshNet.Common |
| | | 4 | | { |
| | | 5 | | /// <summary> |
| | | 6 | | /// Provides data for <see cref="KeyboardInteractiveConnectionInfo.AuthenticationPrompt"/> event. |
| | | 7 | | /// </summary> |
| | | 8 | | public class AuthenticationPromptEventArgs : AuthenticationEventArgs |
| | | 9 | | { |
| | | 10 | | /// <summary> |
| | | 11 | | /// Initializes a new instance of the <see cref="AuthenticationPromptEventArgs"/> class. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <param name="username">The username.</param> |
| | | 14 | | /// <param name="instruction">The instruction.</param> |
| | | 15 | | /// <param name="language">The language.</param> |
| | | 16 | | /// <param name="prompts">The information request prompts.</param> |
| | | 17 | | public AuthenticationPromptEventArgs(string username, string instruction, string language, IEnumerable<Authentic |
| | 9 | 18 | | : base(username) |
| | 9 | 19 | | { |
| | 9 | 20 | | Instruction = instruction; |
| | 9 | 21 | | Language = language; |
| | 9 | 22 | | Prompts = prompts; |
| | 9 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Gets prompt language. |
| | | 27 | | /// </summary> |
| | 0 | 28 | | public string Language { get; } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Gets prompt instruction. |
| | | 32 | | /// </summary> |
| | 7 | 33 | | public string Instruction { get; } |
| | | 34 | | |
| | | 35 | | /// <summary> |
| | | 36 | | /// Gets server information request prompts. |
| | | 37 | | /// </summary> |
| | 18 | 38 | | public IEnumerable<AuthenticationPrompt> Prompts { get; } |
| | | 39 | | } |
| | | 40 | | } |