public class UnixAgentFactory extends Object implements SshAgentFactory, ExecutorServiceConfigurer
| Modifier and Type | Field and Description |
|---|---|
static List<NamedFactory<Channel>> |
DEFAULT_FORWARDING_CHANNELS |
DEFAULT_PROXY_AUTH_CHANNEL_TYPE, PROXY_AUTH_CHANNEL_TYPE| Constructor and Description |
|---|
UnixAgentFactory() |
UnixAgentFactory(ExecutorService service,
boolean shutdown) |
| 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.
|
ExecutorService |
getExecutorService() |
boolean |
isShutdownOnExit() |
void |
setExecutorService(ExecutorService service) |
void |
setShutdownOnExit(boolean shutdown) |
public static final List<NamedFactory<Channel>> DEFAULT_FORWARDING_CHANNELS
public UnixAgentFactory()
public UnixAgentFactory(ExecutorService service, boolean shutdown)
public ExecutorService getExecutorService()
getExecutorService in interface ExecutorServiceCarrierExecutorService to usepublic void setExecutorService(ExecutorService service)
setExecutorService in interface ExecutorServiceConfigurerpublic boolean isShutdownOnExit()
isShutdownOnExit in interface ExecutorServiceCarriertrue then the ExecutorService.shutdownNow()
will be called (unless it is an internally allocated service which is always
closed)public void setShutdownOnExit(boolean shutdown)
setShutdownOnExit in interface ExecutorServiceConfigurerpublic List<NamedFactory<Channel>> getChannelForwardingFactories(FactoryManager manager)
SshAgentFactorygetChannelForwardingFactories in interface SshAgentFactorymanager - The FactoryManager through which the request is madepublic 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–2017 The Apache Software Foundation. All rights reserved.