AgentProvider

Provider interface for SSH agent forwarding.

Implement this interface to handle agent requests from remote servers when agent forwarding is enabled. The library will call these methods when a remote server requests identities or signatures. Implementations should return AgentResult.Failure instead of throwing when a backend operation fails.

Functions

Link copied to clipboard
abstract suspend fun getIdentities(): AgentResult<List<AgentIdentity>>

Return the list of identities available for forwarding.

Link copied to clipboard
abstract suspend fun signData(context: AgentSigningContext): AgentResult<ByteArray?>

Sign data with the specified key.