public interface FactoryManager
NamedFactory
used
in the SSH protocol.Modifier and Type | Field and Description |
---|---|
static String |
AUTH_TIMEOUT
Key used to retrieve the value of the timeout after which
it will close the connection if the other side has not been
authenticated.
|
static String |
CHANNEL_CLOSE_TIMEOUT
Key used to configure the timeout used when writing a close request
on a channel.
|
static int |
DEFAULT_NIO_WORKERS
Default number of worker threads to use.
|
static String |
DISCONNECT_TIMEOUT
Key used to retrieve the value of the disconnect timeout which
is used when a disconnection is attempted.
|
static String |
IDLE_TIMEOUT
Key used to retrieve the value of idle timeout after which
it will close the connection.
|
static String |
MAX_PACKET_SIZE
Key used to retrieve the value of the maximum packet size
in the configuration properties map.
|
static String |
NIO_WORKERS
Number of NIO worker threads to use.
|
static String |
SOCKET_BACKLOG
Socket backlog.
|
static String |
SOCKET_KEEPALIVE
Socket keep-alive.
|
static String |
SOCKET_LINGER
Socket linger.
|
static String |
SOCKET_RCVBUF
Socket receive buffer size.
|
static String |
SOCKET_REUSEADDR
Socket reuse address.
|
static String |
SOCKET_SNDBUF
Socket send buffer size.
|
static String |
TCP_NODELAY
Socket tcp no-delay.
|
static String |
WINDOW_SIZE
Key used to retrieve the value of the window size in the
configuration properties map.
|
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() |
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 . |
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.
|
static final String WINDOW_SIZE
static final String MAX_PACKET_SIZE
static final String NIO_WORKERS
static final int DEFAULT_NIO_WORKERS
static final String AUTH_TIMEOUT
static final String IDLE_TIMEOUT
static final String DISCONNECT_TIMEOUT
static final String CHANNEL_CLOSE_TIMEOUT
static final String SOCKET_BACKLOG
AsynchronousServerSocketChannel.bind(java.net.SocketAddress, int)
static final String SOCKET_KEEPALIVE
StandardSocketOptions.SO_KEEPALIVE
static final String SOCKET_SNDBUF
StandardSocketOptions.SO_SNDBUF
static final String SOCKET_RCVBUF
StandardSocketOptions.SO_RCVBUF
static final String SOCKET_REUSEADDR
StandardSocketOptions.SO_REUSEADDR
static final String SOCKET_LINGER
StandardSocketOptions.SO_LINGER
static final String TCP_NODELAY
StandardSocketOptions.TCP_NODELAY
Map<String,String> getProperties()
Map
containing configuration values, never null
String getVersion()
SSHD-1.0
IoServiceFactory getIoServiceFactory()
List<NamedFactory<KeyExchange>> getKeyExchangeFactories()
KeyExchange
.KeyExchange
factories, never null
List<NamedFactory<Cipher>> getCipherFactories()
Cipher
.Cipher
factories, never null
List<NamedFactory<Compression>> getCompressionFactories()
Compression
.Compression
factories, never null
List<NamedFactory<Mac>> getMacFactories()
Mac
.Mac
factories, never null
List<NamedFactory<Signature>> getSignatureFactories()
Signature
.Signature
factories, never null
KeyPairProvider getKeyPairProvider()
KeyPairProvider
that will be used to find
the host key to use on the server side or the user key on the client side.KeyPairProvider
, never null
Factory<Random> getRandomFactory()
Random
factory to be used.Random
factory, never null
List<NamedFactory<Channel>> getChannelFactories()
Channel
objects.Channel
factories, never null
SshAgentFactory getAgentFactory()
SshAgent
objects.ScheduledExecutorService getScheduledExecutorService()
ScheduledExecutorService
to be used.ScheduledExecutorService
, never null
ForwardingFilter getTcpipForwardingFilter()
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.ForwardingFilter
or null
TcpipForwarderFactory getTcpipForwarderFactory()
TcpipForwarderFactory
FileSystemFactory getFileSystemFactory()
FileSystemFactory
to be used to traverse the file system.FileSystemFactory
object or null
if file based
interactions are not supported on this serverList<ServiceFactory> getServiceFactories()
Service
factories.Service
factories, never null
List<RequestHandler<ConnectionService>> getGlobalRequestHandlers()
GlobalRequestHandler
Copyright © 2008–2018 The Apache Software Foundation. All rights reserved.