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 |
DEFAULT_VERSION
The default reported version of
getVersion() if the built-in
version information cannot be accessed |
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 |
NIO2_READ_BUFFER_SIZE
Read buffer size for NIO2 sessions
See
Nio2Session |
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.
|
static String |
WINDOW_TIMEOUT
Key used to retrieve timeout (msec.) to wait for data to
become available when reading from a channel.
|
| 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,Object> |
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 WINDOW_TIMEOUT
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_KEEPALIVEstatic final String SOCKET_SNDBUF
StandardSocketOptions.SO_SNDBUFstatic final String SOCKET_RCVBUF
StandardSocketOptions.SO_RCVBUFstatic final String SOCKET_REUSEADDR
StandardSocketOptions.SO_REUSEADDRstatic final String SOCKET_LINGER
StandardSocketOptions.SO_LINGERstatic final String TCP_NODELAY
StandardSocketOptions.TCP_NODELAYstatic final String NIO2_READ_BUFFER_SIZE
Nio2Sessionstatic final String DEFAULT_VERSION
getVersion() if the built-in
version information cannot be accessedMap<String,Object> getProperties()
A map of properties that can be used to configure the SSH server or client. This map will never be changed by either the server or client and is not supposed to be changed at runtime (changes are not bound to have any effect on a running client or server), though it may affect the creation of sessions later as these values are usually not cached.
Note: the type of the mapped property should match the
expected configuration value type - Long, Integer, Boolean,
String, etc.... If it doesn't, the toString() result of the
mapped value is used to convert it to the required type. E.g., if
the mapped value is the string "1234" and the expected
value is a long then it will be parsed into one. Also, if
the mapped value is an Integer but a long is expected,
then it will be converted into one.
Map containing configuration values, never nullString getVersion()
SSHD-1.0IoServiceFactory getIoServiceFactory()
List<NamedFactory<KeyExchange>> getKeyExchangeFactories()
KeyExchange.KeyExchange factories, never nullList<NamedFactory<Cipher>> getCipherFactories()
Cipher.Cipher factories, never nullList<NamedFactory<Compression>> getCompressionFactories()
Compression.Compression factories, never nullList<NamedFactory<Mac>> getMacFactories()
Mac.Mac factories, never nullList<NamedFactory<Signature>> getSignatureFactories()
Signature.Signature factories, never nullKeyPairProvider 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 nullFactory<Random> getRandomFactory()
Random factory to be used.Random factory, never nullList<NamedFactory<Channel>> getChannelFactories()
Channel objects.Channel factories, never nullSshAgentFactory getAgentFactory()
SshAgent objects.ScheduledExecutorService getScheduledExecutorService()
ScheduledExecutorService to be used.ScheduledExecutorService, never nullForwardingFilter 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 nullTcpipForwarderFactory getTcpipForwarderFactory()
TcpipForwarderFactoryFileSystemFactory 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 nullList<RequestHandler<ConnectionService>> getGlobalRequestHandlers()
GlobalRequestHandlerCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.