Package org.apache.sshd.agent.local
Class ProxyAgentFactory
- java.lang.Object
-
- org.apache.sshd.agent.local.ProxyAgentFactory
-
- All Implemented Interfaces:
SshAgentFactory
public class ProxyAgentFactory extends java.lang.Object implements SshAgentFactory
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,AgentServerProxy>proxies
-
Constructor Summary
Constructors Constructor Description ProxyAgentFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SshAgentcreateClient(FactoryManager manager)Create an SshAgent that can be used on the client side by the authentication process to send possible keys.SshAgentServercreateServer(ConnectionService service)Create the server side that will be used by other SSH clients.java.util.List<ChannelFactory>getChannelForwardingFactories(FactoryManager manager)The channels are requested by the ssh server when forwarding a client request.static booleanisPreferredUnixAgent(PropertyResolver resolver)
-
-
-
Field Detail
-
proxies
private final java.util.Map<java.lang.String,AgentServerProxy> proxies
-
-
Method Detail
-
getChannelForwardingFactories
public java.util.List<ChannelFactory> getChannelForwardingFactories(FactoryManager manager)
Description copied from interface:SshAgentFactoryThe 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:
getChannelForwardingFactoriesin interfaceSshAgentFactory- Parameters:
manager- TheFactoryManagerthrough 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:SshAgentFactoryCreate an SshAgent that can be used on the client side by the authentication process to send possible keys.- Specified by:
createClientin interfaceSshAgentFactory- Parameters:
manager- TheFactoryManagerinstance- Returns:
- The
SshAgentinstance - Throws:
java.io.IOException- If failed to create the client
-
createServer
public SshAgentServer createServer(ConnectionService service) throws java.io.IOException
Description copied from interface:SshAgentFactoryCreate 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.- Specified by:
createServerin interfaceSshAgentFactory- Parameters:
service- TheConnectionServiceto use- Returns:
- The
SshAgentServerinstance - Throws:
java.io.IOException- If failed to create the server
-
isPreferredUnixAgent
public static boolean isPreferredUnixAgent(PropertyResolver resolver)
-
-