Interface ISshChallenge
Represents a keyboard-interactive authentication challenge sent to a client.
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions.Models
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public interface ISshChallenge
Properties
| Edit this page View SourceInteractionInstruction
Gets or sets instructions shown with the challenge.
Declaration
string InteractionInstruction { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
InteractionName
Gets or sets the challenge name shown to the client.
Declaration
string InteractionName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LanguageTag
Gets or sets the language tag for challenge text.
Declaration
string LanguageTag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Prompts
Gets prompts already added to the challenge.
Declaration
IReadOnlyList<(string Prompt, bool Echo)> Prompts { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<(string Prompt, bool Echo)> |
Methods
| Edit this page View SourceAddPrompt(string, bool)
Adds a prompt to the challenge.
Declaration
void AddPrompt(string prompt, bool echo = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | prompt | Prompt text shown to the client. |
| bool | echo | Whether the client may echo the response while typing. |