KeyboardInteractiveCallback

Callback for keyboard-interactive authentication (RFC 4256).

The server sends one or more info requests, each containing prompts that the user must answer. onInfoRequest receives a respond callback; call it with the answers to send them back to the server.

Types

Link copied to clipboard
data class Prompt(val text: String, val echo: Boolean)

Functions

Link copied to clipboard
abstract suspend fun onInfoRequest(name: String, instruction: String, prompts: List<KeyboardInteractiveCallback.Prompt>, respond: suspend (responses: List<String>) -> Unit)

Called when the server sends an info request with prompts.