Package org.apache.sshd.agent
Interface SshAgentFactory
-
- All Known Implementing Classes:
LocalAgentFactory,ProxyAgentFactory,UnixAgentFactory
public interface SshAgentFactoryTheSshAgentFactoryis used to communicate with an SshAgent.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SshAgentcreateClient(Session session, 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.List<ChannelFactory>getChannelForwardingFactories(FactoryManager manager)The channels are requested by the ssh server when forwarding a client request.
-
-
-
Method Detail
-
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 needs to forward them to the agent, either local or through another proxy.- Parameters:
manager- TheFactoryManagerthrough which the request is made- Returns:
- The
ChannelFactory-ies used to create channels for agent forwarding on the client side. Ifnullor empty, agent forwarding is not available.
-
createClient
SshAgent createClient(Session session, FactoryManager manager) throws IOException
Create an SshAgent that can be used on the client side by the authentication process to send possible keys.- Parameters:
session- theSessiontheSshAgentis to be created for; may benullmanager- TheFactoryManagerinstance- Returns:
- The
SshAgentinstance, ornullif no SSH agent shall be used - 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- TheConnectionServiceto use- Returns:
- The
SshAgentServerinstance - Throws:
IOException- If failed to create the server
-
-