Class ProxyAgentFactory

    • Field Detail

      • proxies

        private final java.util.Map<java.lang.String,​AgentServerProxy> proxies
    • Constructor Detail

      • ProxyAgentFactory

        public ProxyAgentFactory()
    • 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 needs 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 for agent forwarding on the client side. If null or empty, agent forwarding is not available.
      • createClient

        public SshAgent createClient​(Session session,
                                     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:
        session - the Session the SshAgent is to be created for; may be null
        manager - The FactoryManager instance
        Returns:
        The SshAgent instance, or null if no SSH agent shall be used
        Throws:
        java.io.IOException - If failed to create the client
      • isPreferredUnixAgent

        public static boolean isPreferredUnixAgent​(PropertyResolver resolver)