public class UnixAgentFactory extends Object implements SshAgentFactory
| Modifier and Type | Field and Description |
|---|---|
static List<ChannelFactory> |
DEFAULT_FORWARDING_CHANNELS |
| Constructor and Description |
|---|
UnixAgentFactory() |
UnixAgentFactory(Factory<CloseableExecutorService> factory) |
| 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<ChannelFactory> |
getChannelForwardingFactories(FactoryManager manager)
The channels are requested by the ssh server when forwarding a client request.
|
protected CloseableExecutorService |
newExecutor() |
public static final List<ChannelFactory> DEFAULT_FORWARDING_CHANNELS
public UnixAgentFactory()
public UnixAgentFactory(Factory<CloseableExecutorService> factory)
protected CloseableExecutorService newExecutor()
public List<ChannelFactory> getChannelForwardingFactories(FactoryManager manager)
SshAgentFactorygetChannelForwardingFactories in interface SshAgentFactorymanager - The FactoryManager through which the request is madeChannelFactory-ies used to create channels on the client sidepublic SshAgent createClient(FactoryManager manager) throws IOException
SshAgentFactorycreateClient in interface SshAgentFactorymanager - The FactoryManager instanceSshAgent instanceIOException - If failed to create the clientpublic SshAgentServer createServer(ConnectionService service) throws IOException
SshAgentFactorycreateServer in interface SshAgentFactoryservice - The ConnectionService to useSshAgentServer instanceIOException - If failed to create the serverCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.