public abstract class AbstractFactoryManager extends Object implements FactoryManager
DEFAULT_NIO_WORKERS, MAX_PACKET_SIZE, NIO_WORKERS, WINDOW_SIZE
Modifier | Constructor and Description |
---|---|
protected |
AbstractFactoryManager() |
Modifier and Type | Method and Description |
---|---|
SshAgentFactory |
getAgentFactory()
Retrieve the agent factory for creating
SshAgent objects. |
List<NamedFactory<Channel>> |
getChannelFactories()
Retrieve the list of named factories for
Channel objects. |
List<NamedFactory<Cipher>> |
getCipherFactories()
Retrieve the list of named factories for
Cipher . |
List<NamedFactory<Compression>> |
getCompressionFactories()
Retrieve the list of named factories for
Compression . |
FileSystemFactory |
getFileSystemFactory()
Retrieve the
FileSystemFactory to be used to traverse the file system. |
List<RequestHandler<ConnectionService>> |
getGlobalRequestHandlers()
Retrieve the list of global request handlers.
|
IoServiceFactory |
getIoServiceFactory() |
IoServiceFactoryFactory |
getIoServiceFactoryFactory() |
List<NamedFactory<KeyExchange>> |
getKeyExchangeFactories()
Retrieve the list of named factories for
KeyExchange . |
KeyPairProvider |
getKeyPairProvider()
Retrieve the
KeyPairProvider that will be used to find
the host key to use on the server side or the user key on the client side. |
List<NamedFactory<Mac>> |
getMacFactories()
Retrieve the list of named factories for
Mac . |
int |
getNioWorkers() |
Map<String,String> |
getProperties()
A map of properties that can be used to configure the SSH server
or client.
|
Factory<Random> |
getRandomFactory()
Retrieve the
Random factory to be used. |
ScheduledExecutorService |
getScheduledExecutorService()
Retrieve the
ScheduledExecutorService to be used. |
List<ServiceFactory> |
getServiceFactories()
Retrieve the list of SSH
Service factories. |
List<NamedFactory<Signature>> |
getSignatureFactories()
Retrieve the list of named factories for
Signature . |
TcpipForwarderFactory |
getTcpipForwarderFactory()
Retrieve the tcpip forwarder factory used to support tcpip forwarding.
|
ForwardingFilter |
getTcpipForwardingFilter()
Retrieve the
ForwardingFilter to be used by the SSH server. |
String |
getVersion()
An upper case string identifying the version of the
software used on client or server side.
|
protected void |
loadVersion() |
void |
setAgentFactory(SshAgentFactory agentFactory) |
void |
setChannelFactories(List<NamedFactory<Channel>> channelFactories) |
void |
setCipherFactories(List<NamedFactory<Cipher>> cipherFactories) |
void |
setCompressionFactories(List<NamedFactory<Compression>> compressionFactories) |
void |
setFileSystemFactory(FileSystemFactory fileSystemFactory) |
void |
setGlobalRequestHandlers(List<RequestHandler<ConnectionService>> globalRequestHandlers) |
void |
setIoServiceFactoryFactory(IoServiceFactoryFactory ioServiceFactory) |
void |
setKeyExchangeFactories(List<NamedFactory<KeyExchange>> keyExchangeFactories) |
void |
setKeyPairProvider(KeyPairProvider keyPairProvider) |
void |
setMacFactories(List<NamedFactory<Mac>> macFactories) |
void |
setNioWorkers(int nioWorkers) |
void |
setProperties(Map<String,String> properties) |
void |
setRandomFactory(Factory<Random> randomFactory) |
void |
setScheduledExecutorService(ScheduledExecutorService executor) |
void |
setScheduledExecutorService(ScheduledExecutorService executor,
boolean shutdownExecutor) |
void |
setServiceFactories(List<ServiceFactory> serviceFactories) |
void |
setSignatureFactories(List<NamedFactory<Signature>> signatureFactories) |
void |
setTcpipForwarderFactory(TcpipForwarderFactory tcpipForwarderFactory) |
void |
setTcpipForwardingFilter(ForwardingFilter tcpipForwardingFilter) |
protected final org.slf4j.Logger log
protected IoServiceFactoryFactory ioServiceFactoryFactory
protected IoServiceFactory ioServiceFactory
protected List<NamedFactory<KeyExchange>> keyExchangeFactories
protected List<NamedFactory<Cipher>> cipherFactories
protected List<NamedFactory<Compression>> compressionFactories
protected List<NamedFactory<Mac>> macFactories
protected List<NamedFactory<Signature>> signatureFactories
protected KeyPairProvider keyPairProvider
protected String version
protected List<NamedFactory<Channel>> channelFactories
protected SshAgentFactory agentFactory
protected ScheduledExecutorService executor
protected boolean shutdownExecutor
protected TcpipForwarderFactory tcpipForwarderFactory
protected ForwardingFilter tcpipForwardingFilter
protected FileSystemFactory fileSystemFactory
protected List<ServiceFactory> serviceFactories
protected List<RequestHandler<ConnectionService>> globalRequestHandlers
public IoServiceFactory getIoServiceFactory()
getIoServiceFactory
in interface FactoryManager
public IoServiceFactoryFactory getIoServiceFactoryFactory()
public void setIoServiceFactoryFactory(IoServiceFactoryFactory ioServiceFactory)
public List<NamedFactory<KeyExchange>> getKeyExchangeFactories()
FactoryManager
KeyExchange
.getKeyExchangeFactories
in interface FactoryManager
KeyExchange
factories, never null
public void setKeyExchangeFactories(List<NamedFactory<KeyExchange>> keyExchangeFactories)
public List<NamedFactory<Cipher>> getCipherFactories()
FactoryManager
Cipher
.getCipherFactories
in interface FactoryManager
Cipher
factories, never null
public void setCipherFactories(List<NamedFactory<Cipher>> cipherFactories)
public List<NamedFactory<Compression>> getCompressionFactories()
FactoryManager
Compression
.getCompressionFactories
in interface FactoryManager
Compression
factories, never null
public void setCompressionFactories(List<NamedFactory<Compression>> compressionFactories)
public List<NamedFactory<Mac>> getMacFactories()
FactoryManager
Mac
.getMacFactories
in interface FactoryManager
Mac
factories, never null
public void setMacFactories(List<NamedFactory<Mac>> macFactories)
public List<NamedFactory<Signature>> getSignatureFactories()
FactoryManager
Signature
.getSignatureFactories
in interface FactoryManager
Signature
factories, never null
public void setSignatureFactories(List<NamedFactory<Signature>> signatureFactories)
public Factory<Random> getRandomFactory()
FactoryManager
Random
factory to be used.getRandomFactory
in interface FactoryManager
Random
factory, never null
public KeyPairProvider getKeyPairProvider()
FactoryManager
KeyPairProvider
that will be used to find
the host key to use on the server side or the user key on the client side.getKeyPairProvider
in interface FactoryManager
KeyPairProvider
, never null
public void setKeyPairProvider(KeyPairProvider keyPairProvider)
public Map<String,String> getProperties()
FactoryManager
getProperties
in interface FactoryManager
Map
containing configuration values, never null
public String getVersion()
FactoryManager
SSHD-1.0
getVersion
in interface FactoryManager
protected void loadVersion()
public List<NamedFactory<Channel>> getChannelFactories()
FactoryManager
Channel
objects.getChannelFactories
in interface FactoryManager
Channel
factories, never null
public void setChannelFactories(List<NamedFactory<Channel>> channelFactories)
public int getNioWorkers()
public void setNioWorkers(int nioWorkers)
public SshAgentFactory getAgentFactory()
FactoryManager
SshAgent
objects.getAgentFactory
in interface FactoryManager
public void setAgentFactory(SshAgentFactory agentFactory)
public ScheduledExecutorService getScheduledExecutorService()
FactoryManager
ScheduledExecutorService
to be used.getScheduledExecutorService
in interface FactoryManager
ScheduledExecutorService
, never null
public void setScheduledExecutorService(ScheduledExecutorService executor)
public void setScheduledExecutorService(ScheduledExecutorService executor, boolean shutdownExecutor)
public TcpipForwarderFactory getTcpipForwarderFactory()
FactoryManager
getTcpipForwarderFactory
in interface FactoryManager
TcpipForwarderFactory
public void setTcpipForwarderFactory(TcpipForwarderFactory tcpipForwarderFactory)
public ForwardingFilter getTcpipForwardingFilter()
FactoryManager
ForwardingFilter
to be used by the SSH server.
If no filter has been configured (i.e. this method returns
null
), then all forwarding requests will be rejected.getTcpipForwardingFilter
in interface FactoryManager
ForwardingFilter
or null
public void setTcpipForwardingFilter(ForwardingFilter tcpipForwardingFilter)
public FileSystemFactory getFileSystemFactory()
FactoryManager
FileSystemFactory
to be used to traverse the file system.getFileSystemFactory
in interface FactoryManager
FileSystemFactory
object or null
if file based
interactions are not supported on this serverpublic void setFileSystemFactory(FileSystemFactory fileSystemFactory)
public List<ServiceFactory> getServiceFactories()
FactoryManager
Service
factories.getServiceFactories
in interface FactoryManager
Service
factories, never null
public void setServiceFactories(List<ServiceFactory> serviceFactories)
public List<RequestHandler<ConnectionService>> getGlobalRequestHandlers()
FactoryManager
getGlobalRequestHandlers
in interface FactoryManager
GlobalRequestHandler
public void setGlobalRequestHandlers(List<RequestHandler<ConnectionService>> globalRequestHandlers)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.