Interface FactoryManager
- All Superinterfaces:
org.apache.sshd.common.AttributeRepository, org.apache.sshd.common.AttributeStore, ChannelListenerManager, ChannelStreamWriterResolver, ChannelStreamWriterResolverManager, org.apache.sshd.common.io.IoServiceEventListenerManager, KexExtensionHandlerManager, KexFactoryManager, PortForwardingEventListenerManager, org.apache.sshd.common.PropertyResolver, ReservedSessionMessagesManager, SessionDisconnectHandlerManager, org.apache.sshd.common.session.SessionHeartbeatController, SessionListenerManager, org.apache.sshd.common.signature.SignatureFactoriesHolder, org.apache.sshd.common.signature.SignatureFactoriesManager, UnknownChannelReferenceHandlerManager
- All Known Subinterfaces:
ClientFactoryManager, ServerFactoryManager
- All Known Implementing Classes:
AbstractFactoryManager, SshClient, SshServer
public interface FactoryManager
extends KexFactoryManager, SessionListenerManager, ReservedSessionMessagesManager, SessionDisconnectHandlerManager, ChannelListenerManager, ChannelStreamWriterResolverManager, UnknownChannelReferenceHandlerManager, PortForwardingEventListenerManager, org.apache.sshd.common.io.IoServiceEventListenerManager, org.apache.sshd.common.AttributeStore, org.apache.sshd.common.session.SessionHeartbeatController
This interface allows retrieving all the
NamedFactory used in the SSH protocol.- Author:
- Apache MINA SSHD Project
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.common.AttributeRepository
org.apache.sshd.common.AttributeRepository.AttributeKey<T>Nested classes/interfaces inherited from interface org.apache.sshd.common.session.SessionHeartbeatController
org.apache.sshd.common.session.SessionHeartbeatController.HeartbeatType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe defaultREPORTED_VERSIONofgetVersion()if the built-in version information cannot be accessedFields inherited from interface ChannelStreamWriterResolver
NONEFields inherited from interface org.apache.sshd.common.PropertyResolver
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the agent factory for creatingSshAgentobjects.default AgentForwardingFilterList<? extends ChannelFactory> Retrieve the list of named factories forChannelobjects.org.apache.sshd.common.file.FileSystemFactoryRetrieve theFileSystemFactoryto be used to traverse the file system.Retrieve the forwarder factory used to support forwarding.Retrieve theForwardingFilterto be used by the SSH server.Retrieve the list of global request handlers.org.apache.sshd.common.io.IoServiceFactoryorg.apache.sshd.common.Factory<? extends org.apache.sshd.common.random.Random> Retrieve theRandomfactory to be used.Retrieve theScheduledExecutorServiceto be used.List<? extends ServiceFactory> Retrieve the list of SSHServicefactories.default TcpForwardingFilterAn upper case string identifying the version of the software used on client or server side.default X11ForwardingFilterdefault <T> TresolveAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key) static <T> TresolveAttribute(FactoryManager manager, org.apache.sshd.common.AttributeRepository.AttributeKey<T> key) Methods inherited from interface org.apache.sshd.common.AttributeRepository
attributeKeys, getAttribute, getAttributesCountMethods inherited from interface org.apache.sshd.common.AttributeStore
clearAttributes, computeAttributeIfAbsent, removeAttribute, setAttributeMethods inherited from interface ChannelListenerManager
addChannelListener, getChannelListenerProxy, removeChannelListenerMethods inherited from interface ChannelStreamWriterResolverManager
getChannelStreamWriterResolver, resolveChannelStreamWriter, resolveChannelStreamWriterResolver, setChannelStreamWriterResolverMethods inherited from interface org.apache.sshd.common.io.IoServiceEventListenerManager
getIoServiceEventListener, setIoServiceEventListenerMethods inherited from interface KexExtensionHandlerManager
getKexExtensionHandler, setKexExtensionHandlerMethods inherited from interface KexFactoryManager
getCipherFactories, getCipherFactoriesNameList, getCipherFactoriesNames, getCompressionFactories, getCompressionFactoriesNameList, getCompressionFactoriesNames, getKeyExchangeFactories, getMacFactories, getMacFactoriesNameList, getMacFactoriesNames, setCipherFactories, setCipherFactoriesNameList, setCipherFactoriesNames, setCipherFactoriesNames, setCompressionFactories, setCompressionFactoriesNameList, setCompressionFactoriesNames, setCompressionFactoriesNames, setKeyExchangeFactories, setMacFactories, setMacFactoriesNameList, setMacFactoriesNames, setMacFactoriesNamesMethods inherited from interface PortForwardingEventListenerManager
addPortForwardingEventListener, getPortForwardingEventListenerProxy, removePortForwardingEventListenerMethods inherited from interface org.apache.sshd.common.PropertyResolver
getBoolean, getBooleanProperty, getCharset, getInteger, getIntProperty, getLong, getLongProperty, getObject, getParentPropertyResolver, getProperties, getString, getStringProperty, isEmptyMethods inherited from interface ReservedSessionMessagesManager
getReservedSessionMessagesHandler, setReservedSessionMessagesHandlerMethods inherited from interface SessionDisconnectHandlerManager
getSessionDisconnectHandler, setSessionDisconnectHandlerMethods inherited from interface org.apache.sshd.common.session.SessionHeartbeatController
disableSessionHeartbeat, getSessionHeartbeatInterval, getSessionHeartbeatType, setSessionHeartbeat, setSessionHeartbeatMethods inherited from interface SessionListenerManager
addSessionListener, getSessionListenerProxy, removeSessionListenerMethods inherited from interface org.apache.sshd.common.signature.SignatureFactoriesHolder
getSignatureFactories, getSignatureFactoriesNameList, getSignatureFactoriesNamesMethods inherited from interface org.apache.sshd.common.signature.SignatureFactoriesManager
setSignatureFactories, setSignatureFactoriesNameList, setSignatureFactoriesNames, setSignatureFactoriesNamesMethods inherited from interface UnknownChannelReferenceHandlerManager
getUnknownChannelReferenceHandler, resolveUnknownChannelReferenceHandler, setUnknownChannelReferenceHandler
-
Field Details
-
DEFAULT_VERSION
The defaultREPORTED_VERSIONofgetVersion()if the built-in version information cannot be accessed- See Also:
-
-
Method Details
-
getVersion
String getVersion()An upper case string identifying the version of the software used on client or server side. This version includes the name and version of the software and usually looks like this:SSHD-CORE-1.0- Returns:
- the version of the software
-
getIoServiceFactory
org.apache.sshd.common.io.IoServiceFactory getIoServiceFactory() -
getRandomFactory
org.apache.sshd.common.Factory<? extends org.apache.sshd.common.random.Random> getRandomFactory()Retrieve theRandomfactory to be used.- Returns:
- The
Randomfactory, nevernull
-
getChannelFactories
List<? extends ChannelFactory> getChannelFactories()Retrieve the list of named factories forChannelobjects.- Returns:
- A list of
ChannelFactory-ies, nevernull
-
getAgentFactory
SshAgentFactory getAgentFactory()Retrieve the agent factory for creatingSshAgentobjects.- Returns:
- The
SshAgentFactory
-
getScheduledExecutorService
ScheduledExecutorService getScheduledExecutorService()Retrieve theScheduledExecutorServiceto be used.- Returns:
- The
ScheduledExecutorService, nevernull
-
getForwardingFilter
ForwardingFilter getForwardingFilter()Retrieve theForwardingFilterto be used by the SSH server. If no filter has been configured (i.e. this method returnsnull), then all forwarding requests will be rejected.- Returns:
- The
ForwardingFilterornull
-
getTcpForwardingFilter
-
getAgentForwardingFilter
-
getX11ForwardingFilter
-
getForwarderFactory
ForwarderFactory getForwarderFactory()Retrieve the forwarder factory used to support forwarding.- Returns:
- The
ForwarderFactory
-
getFileSystemFactory
org.apache.sshd.common.file.FileSystemFactory getFileSystemFactory()Retrieve theFileSystemFactoryto be used to traverse the file system.- Returns:
- a valid
FileSystemFactoryinstance ornullif file based interactions are not supported on this server
-
getServiceFactories
List<? extends ServiceFactory> getServiceFactories()Retrieve the list of SSHServicefactories.- Returns:
- a list of named
Servicefactories, nevernull
-
getGlobalRequestHandlers
List<RequestHandler<ConnectionService>> getGlobalRequestHandlers()Retrieve the list of global request handlers.- Returns:
- a list of named
GlobalRequestHandler
-
resolveAttribute
default <T> T resolveAttribute(org.apache.sshd.common.AttributeRepository.AttributeKey<T> key) - Specified by:
resolveAttributein interfaceorg.apache.sshd.common.AttributeRepository
-
resolveAttribute
static <T> T resolveAttribute(FactoryManager manager, org.apache.sshd.common.AttributeRepository.AttributeKey<T> key) - Type Parameters:
T- The generic attribute type- Parameters:
manager- TheFactoryManager- ignored ifnullkey- The attribute key - nevernull- Returns:
- Associated value -
nullif not found
-