Auth Handler
Callback-driven authentication handler.
The library drives the authentication flow per RFC 4252, calling back into this handler for materials. The flow is: none → publickey probe → sign → keyboard-interactive → password
Functions
Link copied to clipboard
Called when the server reports which authentication methods are available. Override to observe or log.
Link copied to clipboard
abstract suspend fun onKeyboardInteractivePrompt(name: String, instruction: String, prompts: List<KeyboardInteractiveCallback.Prompt>): List<String>?
Called when the server sends keyboard-interactive prompts. Return responses (one per prompt), or null to skip keyboard-interactive.
Link copied to clipboard
Return the password, or null to skip password auth.
Link copied to clipboard
Return public keys to probe. Empty list skips public key auth.
Link copied to clipboard
Called only for keys the server accepted (PK_OK). Return the signature over dataToSign, or null to skip this key.