Interface SshAgentFactory

All Known Implementing Classes:
LocalAgentFactory, ProxyAgentFactory

public interface SshAgentFactory
The SshAgentFactory is used to communicate with an SshAgent.
  • Method Details

    • getChannelForwardingFactories

      List<ChannelFactory> getChannelForwardingFactories(FactoryManager manager)
      The channels are requested by the ssh server when forwarding a client request. The channel will receive agent requests and need to forward them to the agent, either local or through another proxy.
      Parameters:
      manager - The FactoryManager through which the request is made
      Returns:
      The ChannelFactory-ies used to create channels on the client side
    • createClient

      SshAgent createClient(FactoryManager manager) throws IOException
      Create an SshAgent that can be used on the client side by the authentication process to send possible keys.
      Parameters:
      manager - The FactoryManager instance
      Returns:
      The SshAgent instance
      Throws:
      IOException - If failed to create the client
    • createServer

      SshAgentServer createServer(ConnectionService service) throws IOException
      Create the server side that will be used by other SSH clients. It will usually create a channel that will forward the requests to the original client.
      Parameters:
      service - The ConnectionService to use
      Returns:
      The SshAgentServer instance
      Throws:
      IOException - If failed to create the server