public interface SshAgentFactory
SshAgentFactory
is used to communicate with an SshAgent.Modifier and Type | Method and 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.
|
List<ChannelFactory> getChannelForwardingFactories(FactoryManager manager)
manager
- The FactoryManager
through which the request is madeChannelFactory
-ies used to create channels for agent forwarding on the client side.
If null
or empty, agent forwarding is not available.SshAgent createClient(Session session, FactoryManager manager) throws IOException
session
- the Session
the SshAgent
is to be created for; may be null
manager
- The FactoryManager
instanceSshAgent
instance, or null
if no SSH agent shall be usedIOException
- If failed to create the clientSshAgentServer createServer(ConnectionService service) throws IOException
service
- The ConnectionService
to useSshAgentServer
instanceIOException
- If failed to create the serverCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.