public class ProxyAgentFactory extends Object implements SshAgentFactory
DEFAULT_PROXY_AUTH_CHANNEL_TYPE, PREFER_UNIX_AGENT, PROXY_AUTH_CHANNEL_TYPE
Constructor and Description |
---|
ProxyAgentFactory() |
Modifier and Type | Method and Description |
---|---|
SshAgent |
createClient(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<NamedFactory<Channel>> |
getChannelForwardingFactories(FactoryManager manager)
The channels are requested by the ssh server when forwarding a client request.
|
static boolean |
isPreferredUnixAgent(PropertyResolver resolver) |
public List<NamedFactory<Channel>> getChannelForwardingFactories(FactoryManager manager)
SshAgentFactory
getChannelForwardingFactories
in interface SshAgentFactory
manager
- The FactoryManager
through which the request is madepublic SshAgent createClient(FactoryManager manager) throws IOException
SshAgentFactory
createClient
in interface SshAgentFactory
manager
- The FactoryManager
instanceSshAgent
instanceIOException
- If failed to create the clientpublic SshAgentServer createServer(ConnectionService service) throws IOException
SshAgentFactory
createServer
in interface SshAgentFactory
service
- The ConnectionService
to useSshAgentServer
instanceIOException
- If failed to create the serverpublic static boolean isPreferredUnixAgent(PropertyResolver resolver)
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.