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
Called when the server reports which authentication methods are available. Override to observe or log.
Called when the server sends keyboard-interactive prompts. Return responses (one per prompt), or null to skip keyboard-interactive.
Return the password, or null to skip password auth.
Return public keys to probe. Empty list skips public key auth. OpenSSH user certificates can be supplied using SshCertificate.toAuthPublicKey.
Called only for keys the server accepted (PK_OK). Return the signature over dataToSign, or null to skip this key.