public interface ServerFactoryManager extends FactoryManager
ServerFactoryManager
enable the retrieval of additional
configuration needed specifically for the server side.Modifier and Type | Field and Description |
---|---|
static String |
AUTH_METHODS
This key is used when configuring multi-step authentications.
|
static String |
AUTH_TIMEOUT
Key used to retrieve the value of the timeout after which
the server will close the connection if the client has not been
authenticated.
|
static String |
COMMAND_EXIT_TIMEOUT
Key used to configure the timeout used when receiving a close request
on a channel to wait until the command cleanly exits after setting
an EOF on the input stream.
|
static String |
IDLE_TIMEOUT
Key used to retrieve the value of idle timeout after which
the server will close the connection.
|
static String |
MAX_AUTH_REQUESTS
Key used to retrieve the value in the configuration properties map
of the maximum number of failed authentication requests before the
server closes the connection.
|
static String |
MAX_CONCURRENT_SESSIONS
Key used to retrieve the value of the maximum concurrent open session count per username
|
static String |
SERVER_IDENTIFICATION
Key used to retrieve the value of the server identification string if not default.
|
static String |
WELCOME_BANNER
Key used to retrieve the value of welcome banner that will be displayed
when a user connects to the server.
|
DEFAULT_NIO_WORKERS, MAX_PACKET_SIZE, NIO_WORKERS, WINDOW_SIZE
Modifier and Type | Method and Description |
---|---|
CommandFactory |
getCommandFactory()
Retrieve the
CommandFactory to be used to process commands requests. |
GSSAuthenticator |
getGSSAuthenticator()
Retrieve the
GSSAuthenticator to be used by the SSH server. |
PasswordAuthenticator |
getPasswordAuthenticator()
Retrieve the
PasswordAuthenticator to be used by the SSH server. |
PublickeyAuthenticator |
getPublickeyAuthenticator()
Retrieve the
PublickeyAuthenticator to be used by SSH server. |
Factory<Command> |
getShellFactory()
Retrieve the
ShellFactory object to be used to create shells. |
List<NamedFactory<Command>> |
getSubsystemFactories()
Retrieve the list of named factories for
CommandFactory.Command to
be used to create subsystems. |
List<NamedFactory<UserAuth>> |
getUserAuthFactories()
Retrieve the list of named factories for
UserAuth |
getAgentFactory, getChannelFactories, getCipherFactories, getCompressionFactories, getFileSystemFactory, getIoServiceFactory, getKeyExchangeFactories, getKeyPairProvider, getMacFactories, getProperties, getRandomFactory, getScheduledExecutorService, getSignatureFactories, getTcpipForwarderFactory, getTcpipForwardingFilter, getVersion
static final String MAX_CONCURRENT_SESSIONS
static final String SERVER_IDENTIFICATION
static final String MAX_AUTH_REQUESTS
static final String AUTH_TIMEOUT
static final String IDLE_TIMEOUT
static final String WELCOME_BANNER
static final String AUTH_METHODS
publickey,password publickey,keyboard-interactive
would require the user to complete public key authentication,
followed by either password or keyboard interactive authentication.
Only methods that are next in one or more lists are offered at each
stage, so for this example, it would not be possible to attempt
password or keyboard-interactive authentication before public key.static final String COMMAND_EXIT_TIMEOUT
List<NamedFactory<UserAuth>> getUserAuthFactories()
UserAuth objects.
UserAuth
factories, never null
PublickeyAuthenticator getPublickeyAuthenticator()
PublickeyAuthenticator
to be used by SSH server.
If no authenticator has been configured (i.e. this method returns
null
), then client authentication requests based on keys will be
rejected.PublickeyAuthenticato
or null
PasswordAuthenticator getPasswordAuthenticator()
PasswordAuthenticator
to be used by the SSH server.
If no authenticator has been configured (i.e. this method returns
null
), then client authentication requests based on passwords
will be rejected.PasswordAuthenticator
or null
GSSAuthenticator getGSSAuthenticator()
GSSAuthenticator
to be used by the SSH server.
If no authenticator has been configured (i.e. this method returns
null
), then client authentication requests based on gssapi
will be rejected.GSSAuthenticator
or null
Factory<Command> getShellFactory()
ShellFactory
object to be used to create shells.ShellFactory
object or null
if shells
are not supported on this serverCommandFactory getCommandFactory()
CommandFactory
to be used to process commands requests.CommandFactory
object or null
if commands
are not supported on this serverList<NamedFactory<Command>> getSubsystemFactories()
CommandFactory.Command
to
be used to create subsystems.CommandFactory.Command
factories
or null
if subsystems are not supported on this serverCopyright © 2008–2013 The Apache Software Foundation. All rights reserved.