Package org.apache.sshd.agent.local
Class ProxyAgentFactory
java.lang.Object
org.apache.sshd.agent.local.ProxyAgentFactory
- All Implemented Interfaces:
SshAgentFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateClient(Session session, FactoryManager manager) Create an SshAgent that can be used on the client side by the authentication process to send possible keys.createServer(ConnectionService service) Create the server side that will be used by other SSH clients.The channels are requested by the ssh server when forwarding a client request.static booleanisPreferredUnixAgent(PropertyResolver resolver)
-
Field Details
-
proxies
-
-
Constructor Details
-
ProxyAgentFactory
public ProxyAgentFactory()
-
-
Method Details
-
getChannelForwardingFactories
Description copied from interface:SshAgentFactoryThe 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:
getChannelForwardingFactoriesin interfaceSshAgentFactory- 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
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:
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
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:
IOException- If failed to create the server
-
isPreferredUnixAgent
-