Class LocalAgentFactory

    • Field Detail

      • DEFAULT_FORWARDING_CHANNELS

        public static final java.util.List<ChannelFactory> DEFAULT_FORWARDING_CHANNELS
    • Constructor Detail

      • LocalAgentFactory

        public LocalAgentFactory()
      • LocalAgentFactory

        public LocalAgentFactory​(SshAgent agent)
    • Method Detail

      • getChannelForwardingFactories

        public java.util.List<ChannelFactory> getChannelForwardingFactories​(FactoryManager manager)
        Description copied from interface: SshAgentFactory
        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.
        Specified by:
        getChannelForwardingFactories in interface SshAgentFactory
        Parameters:
        manager - The FactoryManager through which the request is made
        Returns:
        The ChannelFactory-ies used to create channels on the client side
      • createClient

        public SshAgent createClient​(FactoryManager manager)
                              throws java.io.IOException
        Description copied from interface: SshAgentFactory
        Create an SshAgent that can be used on the client side by the authentication process to send possible keys.
        Specified by:
        createClient in interface SshAgentFactory
        Parameters:
        manager - The FactoryManager instance
        Returns:
        The SshAgent instance
        Throws:
        java.io.IOException - If failed to create the client