public interface FactoryManager extends KexFactoryManager, SessionListenerManager, ReservedSessionMessagesManager, SessionDisconnectHandlerManager, ChannelListenerManager, ChannelStreamWriterResolverManager, UnknownChannelReferenceHandlerManager, PortForwardingEventListenerManager, IoServiceEventListenerManager, AttributeStore, SessionHeartbeatController
NamedFactory
used in the SSH protocol.AttributeRepository.AttributeKey<T>
SessionHeartbeatController.HeartbeatType
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_VERSION
The default
REPORTED_VERSION of getVersion() if the built-in version information
cannot be accessed |
NONE
EMPTY
Modifier and Type | Method and Description |
---|---|
SshAgentFactory |
getAgentFactory()
Retrieve the agent factory for creating
SshAgent objects. |
default AgentForwardingFilter |
getAgentForwardingFilter() |
List<? extends ChannelFactory> |
getChannelFactories()
Retrieve the list of named factories for
Channel objects. |
FileSystemFactory |
getFileSystemFactory()
Retrieve the
FileSystemFactory to be used to traverse the file system. |
ForwarderFactory |
getForwarderFactory()
Retrieve the forwarder factory used to support forwarding.
|
ForwardingFilter |
getForwardingFilter()
Retrieve the
ForwardingFilter to be used by the SSH server. |
List<RequestHandler<ConnectionService>> |
getGlobalRequestHandlers()
Retrieve the list of global request handlers.
|
IoServiceFactory |
getIoServiceFactory() |
Factory<? extends Random> |
getRandomFactory()
Retrieve the
Random factory to be used. |
ScheduledExecutorService |
getScheduledExecutorService()
Retrieve the
ScheduledExecutorService to be used. |
List<? extends ServiceFactory> |
getServiceFactories()
Retrieve the list of SSH
Service factories. |
default TcpForwardingFilter |
getTcpForwardingFilter() |
String |
getVersion()
An upper case string identifying the version of the software used on client or server side.
|
default X11ForwardingFilter |
getX11ForwardingFilter() |
default <T> T |
resolveAttribute(AttributeRepository.AttributeKey<T> key)
Attempts to resolve the associated value by going up the store's hierarchy (if any)
|
static <T> T |
resolveAttribute(FactoryManager manager,
AttributeRepository.AttributeKey<T> key) |
getCipherFactories, getCipherFactoriesNameList, getCipherFactoriesNames, getCompressionFactories, getCompressionFactoriesNameList, getCompressionFactoriesNames, getKeyExchangeFactories, getMacFactories, getMacFactoriesNameList, getMacFactoriesNames, setCipherFactories, setCipherFactoriesNameList, setCipherFactoriesNames, setCipherFactoriesNames, setCompressionFactories, setCompressionFactoriesNameList, setCompressionFactoriesNames, setCompressionFactoriesNames, setKeyExchangeFactories, setMacFactories, setMacFactoriesNameList, setMacFactoriesNames, setMacFactoriesNames
getSignatureFactories, resolveSignatureFactories, setSignatureFactories, setSignatureFactoriesNameList, setSignatureFactoriesNames, setSignatureFactoriesNames
getSignatureFactories, getSignatureFactoriesNameList, getSignatureFactoriesNames
getKexExtensionHandler, setKexExtensionHandler
addSessionListener, getSessionListenerProxy, removeSessionListener
getReservedSessionMessagesHandler, setReservedSessionMessagesHandler
getSessionDisconnectHandler, setSessionDisconnectHandler
addChannelListener, getChannelListenerProxy, removeChannelListener
getChannelStreamWriterResolver, resolveChannelStreamWriter, resolveChannelStreamWriterResolver, setChannelStreamWriterResolver
getUnknownChannelReferenceHandler, resolveUnknownChannelReferenceHandler, setUnknownChannelReferenceHandler
addPortForwardingEventListener, getPortForwardingEventListenerProxy, removePortForwardingEventListener
getIoServiceEventListener, setIoServiceEventListener
clearAttributes, computeAttributeIfAbsent, removeAttribute, setAttribute
attributeKeys, getAttribute, getAttributesCount, ofAttributesMap, ofKeyValuePair
disableSessionHeartbeat, getSessionHeartbeatInterval, getSessionHeartbeatType, setSessionHeartbeat, setSessionHeartbeat
getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getParentPropertyResolver, getProperties, getString, getStringProperty, isEmpty, isEmpty
static final String DEFAULT_VERSION
REPORTED_VERSION
of getVersion()
if the built-in version information
cannot be accessedString getVersion()
SSHD-CORE-1.0
IoServiceFactory getIoServiceFactory()
Factory<? extends Random> getRandomFactory()
Random
factory to be used.Random
factory, never null
List<? extends ChannelFactory> getChannelFactories()
Channel
objects.ChannelFactory
-ies, never null
SshAgentFactory getAgentFactory()
SshAgent
objects.SshAgentFactory
ScheduledExecutorService getScheduledExecutorService()
ScheduledExecutorService
to be used.ScheduledExecutorService
, never null
ForwardingFilter getForwardingFilter()
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
default TcpForwardingFilter getTcpForwardingFilter()
default AgentForwardingFilter getAgentForwardingFilter()
default X11ForwardingFilter getX11ForwardingFilter()
ForwarderFactory getForwarderFactory()
ForwarderFactory
FileSystemFactory getFileSystemFactory()
FileSystemFactory
to be used to traverse the file system.FileSystemFactory
instance or null
if file based interactions are not supported
on this serverList<? extends ServiceFactory> getServiceFactories()
Service
factories.Service
factories, never null
List<RequestHandler<ConnectionService>> getGlobalRequestHandlers()
GlobalRequestHandler
default <T> T resolveAttribute(AttributeRepository.AttributeKey<T> key)
AttributeRepository
resolveAttribute
in interface AttributeRepository
T
- The generic attribute typekey
- The key of the attribute; must not be null
.null
if there is no value associated with the specified key either in this repository or any
of its ancestors (if any available)static <T> T resolveAttribute(FactoryManager manager, AttributeRepository.AttributeKey<T> key)
T
- The generic attribute typemanager
- The FactoryManager
- ignored if null
key
- The attribute key - never null
null
if not foundCopyright © 2008–2024 The Apache Software Foundation. All rights reserved.