Interface IAMNetKeyboardInteractiveAuthenticator
Implements keyboard-interactive authentication such as one-time codes or custom prompts.
Namespace: ApacheMinaSSHD.NET.Wrapper.Abstractions
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public interface IAMNetKeyboardInteractiveAuthenticator
Methods
| Edit this page View SourceAuthenticate(ISshSession, string, IResponseList)
Validates the client's responses to the generated challenge.
Declaration
bool Authenticate(ISshSession session, string username, IResponseList response)
Parameters
| Type | Name | Description |
|---|---|---|
| ISshSession | session | Session metadata for the connection being authenticated. |
| string | username | The username requested by the client. |
| IResponseList | response | The responses supplied by the client. |
Returns
| Type | Description |
|---|---|
| bool |
|
GenerateChallenge(string, ISshChallenge)
Populates the challenge sent to the client.
Declaration
void GenerateChallenge(string username, ISshChallenge challenge)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | The username requested by the client. |
| ISshChallenge | challenge | The challenge object to populate with prompts. |