SshSession.authenticatePublicKey

SshAuthOperation authenticatePublicKey(SshSigner signer)

Starts (or resumes) public-key authentication with an application-owned signer.

Calling this again while a previous authentication operation is still pending returns that pending operation; the implementation never duplicates USERAUTH_REQUEST messages on retry.

Parameters

signerSigner wrapping an in-memory key or an agent-backed asynchronous signer.

Returns

A stable operation handle driven by pump.