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 Object implements SshAgentFactory
- Author:
- Apache MINA SSHD Project
-
-
Constructor Summary
Constructors Constructor Description ProxyAgentFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SshAgent
createClient(Session session, FactoryManager manager)
Create an SshAgent that can be used on the client side by the authentication process to send possible keys.SshAgentServer
createServer(ConnectionService service)
Create the server side that will be used by other SSH clients.List<ChannelFactory>
getChannelForwardingFactories(FactoryManager manager)
The channels are requested by the ssh server when forwarding a client request.static boolean
isPreferredUnixAgent(PropertyResolver resolver)
-
-
-
Method Detail
-
getChannelForwardingFactories
public 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 interfaceSshAgentFactory
- Parameters:
manager
- TheFactoryManager
through which the request is made- Returns:
- The
ChannelFactory
-ies used to create channels for agent forwarding on the client side. Ifnull
or empty, agent forwarding is not available.
-
createClient
public SshAgent createClient(Session session, FactoryManager manager) throws 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 interfaceSshAgentFactory
- Parameters:
session
- theSession
theSshAgent
is to be created for; may benull
manager
- TheFactoryManager
instance- Returns:
- The
SshAgent
instance, ornull
if no SSH agent shall be used - Throws:
IOException
- If failed to create the client
-
createServer
public SshAgentServer createServer(ConnectionService service) throws IOException
Description copied from interface:SshAgentFactory
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.- Specified by:
createServer
in interfaceSshAgentFactory
- Parameters:
service
- TheConnectionService
to use- Returns:
- The
SshAgentServer
instance - Throws:
IOException
- If failed to create the server
-
isPreferredUnixAgent
public static boolean isPreferredUnixAgent(PropertyResolver resolver)
-
-