Top Description Fields Methods
org.apache.sshd.common

public Interface FactoryManager

extends KexFactoryManager, SessionListenerManager, ReservedSessionMessagesManager, SessionDisconnectHandlerManager, ChannelListenerManager, ChannelStreamWriterResolverManager, UnknownChannelReferenceHandlerManager, PortForwardingEventListenerManager, IoServiceEventListenerManager, AttributeStore, SessionHeartbeatController
Known Direct Subinterfaces
org.apache.sshd.server.ServerFactoryManager, org.apache.sshd.client.ClientFactoryManager
Known Direct Implementers
org.apache.sshd.common.helpers.AbstractFactoryManager
Imports
java.util.List, .Objects, java.util.concurrent.ScheduledExecutorService, org.apache.sshd.agent.SshAgentFactory, org.apache.sshd.common.channel.ChannelFactory, .ChannelListenerManager, .RequestHandler, org.apache.sshd.common.channel.throttle.ChannelStreamWriterResolverManager, org.apache.sshd.common.file.FileSystemFactory, org.apache.sshd.common.forward.ForwarderFactory, .PortForwardingEventListenerManager, org.apache.sshd.common.io.IoServiceEventListenerManager, .IoServiceFactory, org.apache.sshd.common.kex.KexFactoryManager, org.apache.sshd.common.random.Random, org.apache.sshd.common.session.ConnectionService, .ReservedSessionMessagesManager, .SessionDisconnectHandlerManager, .SessionHeartbeatController, .SessionListenerManager, .UnknownChannelReferenceHandlerManager, org.apache.sshd.server.forward.AgentForwardingFilter, .ForwardingFilter, .TcpForwardingFilter, .X11ForwardingFilter

This interface allows retrieving all the NamedFactory used in the SSH protocol.
Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final String
DEFAULT_VERSION

The default REPORTED_VERSION of FactoryManager#getVersion() if the built-in version information cannot be accessed

Method Summary

Modifier and TypeMethod and Description
public SshAgentFactory

Returns:

The SshAgentFactory
getAgentFactory
()

Retrieve the agent factory for creating SshAgent objects.

public default AgentForwardingFilter
public List<? extends ChannelFactory>

Returns:

A list of ChannelFactory-ies, never null
getChannelFactories
()

Retrieve the list of named factories for Channel objects.

public FileSystemFactory

Returns:

a valid FileSystemFactory instance or null if file based interactions are not supported on this server
getFileSystemFactory
()

Retrieve the FileSystemFactory to be used to traverse the file system.

public ForwarderFactory

Returns:

The ForwarderFactory
getForwarderFactory
()

Retrieve the forwarder factory used to support forwarding.

public ForwardingFilter

Returns:

The ForwardingFilter or null
getForwardingFilter
()

Retrieve the ForwardingFilter to be used by the SSH server.

public List<RequestHandler<ConnectionService>>

Returns:

a list of named GlobalRequestHandler
getGlobalRequestHandlers
()

Retrieve the list of global request handlers.

public IoServiceFactory
public Factory<? extends Random>

Returns:

The Random factory, never null
getRandomFactory
()

Retrieve the Random factory to be used.

public ScheduledExecutorService

Returns:

The ScheduledExecutorService, never null
getScheduledExecutorService
()

Retrieve the ScheduledExecutorService to be used.

public List<? extends ServiceFactory>

Returns:

a list of named Service factories, never null
getServiceFactories
()

Retrieve the list of SSH Service factories.

public default TcpForwardingFilter
public String

Returns:

the version of the software
getVersion
()

An upper case string identifying the version of the software used on client or server side.

public default X11ForwardingFilter
public default <T> T
resolveAttribute(AttributeRepository.AttributeKey<T>
The key of the attribute; must not be null.
key
)

Overrides default org.apache.sshd.common.AttributeRepository.resolveAttribute.

Attempts to resolve the associated value by going up the store's hierarchy (if any)

public static <
The generic attribute type
T
>
T

Returns:

Associated value - null if not found
resolveAttribute
(FactoryManager
The FactoryManager - ignored if null
manager
,
AttributeRepository.AttributeKey<T>
The attribute key - never null
key
)

Inherited from org.apache.sshd.common.AttributeStore:
clearAttributescomputeAttributeIfAbsentremoveAttributesetAttribute
Inherited from org.apache.sshd.common.channel.ChannelListenerManager:
addChannelListenergetChannelListenerProxyremoveChannelListener
Inherited from org.apache.sshd.common.channel.throttle.ChannelStreamWriterResolverManager:
getChannelStreamWriterResolverresolveChannelStreamWriterresolveChannelStreamWriterResolversetChannelStreamWriterResolver
Inherited from org.apache.sshd.common.forward.PortForwardingEventListenerManager:
addPortForwardingEventListenergetPortForwardingEventListenerProxyremovePortForwardingEventListener
Inherited from org.apache.sshd.common.io.IoServiceEventListenerManager:
getIoServiceEventListenersetIoServiceEventListener
Inherited from org.apache.sshd.common.kex.KexFactoryManager:
getCipherFactoriesgetCipherFactoriesNameListgetCipherFactoriesNamesgetCompressionFactoriesgetCompressionFactoriesNameListgetCompressionFactoriesNamesgetKeyExchangeFactoriesgetMacFactoriesgetMacFactoriesNameListgetMacFactoriesNamessetCipherFactoriessetCipherFactoriesNameListsetCipherFactoriesNamessetCipherFactoriesNamessetCompressionFactoriessetCompressionFactoriesNameListsetCompressionFactoriesNamessetCompressionFactoriesNamessetKeyExchangeFactoriessetMacFactoriessetMacFactoriesNameListsetMacFactoriesNamessetMacFactoriesNames
Inherited from org.apache.sshd.common.session.ReservedSessionMessagesManager:
getReservedSessionMessagesHandlersetReservedSessionMessagesHandler
Inherited from org.apache.sshd.common.session.SessionDisconnectHandlerManager:
getSessionDisconnectHandlersetSessionDisconnectHandler
Inherited from org.apache.sshd.common.session.SessionHeartbeatController:
disableSessionHeartbeatgetSessionHeartbeatIntervalgetSessionHeartbeatTypesetSessionHeartbeatsetSessionHeartbeat
Inherited from org.apache.sshd.common.session.SessionListenerManager:
addSessionListenergetSessionListenerProxyremoveSessionListener
Inherited from org.apache.sshd.common.session.UnknownChannelReferenceHandlerManager:
getUnknownChannelReferenceHandlerresolveUnknownChannelReferenceHandlersetUnknownChannelReferenceHandler

Field Detail

DEFAULT_VERSIONback to summary
public static final String DEFAULT_VERSION

The default REPORTED_VERSION of FactoryManager#getVersion() if the built-in version information cannot be accessed

Method Detail

getAgentFactoryback to summary
public SshAgentFactory getAgentFactory()

Retrieve the agent factory for creating SshAgent objects.

Returns:SshAgentFactory

The SshAgentFactory

getAgentForwardingFilterback to summary
public default AgentForwardingFilter getAgentForwardingFilter()
getChannelFactoriesback to summary
public List<? extends ChannelFactory> getChannelFactories()

Retrieve the list of named factories for Channel objects.

Returns:List<? extends ChannelFactory>

A list of ChannelFactory-ies, never null

getFileSystemFactoryback to summary
public FileSystemFactory getFileSystemFactory()

Retrieve the FileSystemFactory to be used to traverse the file system.

Returns:FileSystemFactory

a valid FileSystemFactory instance or null if file based interactions are not supported on this server

getForwarderFactoryback to summary
public ForwarderFactory getForwarderFactory()

Retrieve the forwarder factory used to support forwarding.

Returns:ForwarderFactory

The ForwarderFactory

getForwardingFilterback to summary
public ForwardingFilter getForwardingFilter()

Retrieve the 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.

Returns:ForwardingFilter

The ForwardingFilter or null

getGlobalRequestHandlersback to summary
public List<RequestHandler<ConnectionService>> getGlobalRequestHandlers()

Retrieve the list of global request handlers.

Returns:List<RequestHandler<ConnectionService>>

a list of named GlobalRequestHandler

getIoServiceFactoryback to summary
public IoServiceFactory getIoServiceFactory()
getRandomFactoryback to summary
public Factory<? extends Random> getRandomFactory()

Retrieve the Random factory to be used.

Returns:Factory<? extends Random>

The Random factory, never null

getScheduledExecutorServiceback to summary
public ScheduledExecutorService getScheduledExecutorService()

Retrieve the ScheduledExecutorService to be used.

Returns:ScheduledExecutorService

The ScheduledExecutorService, never null

getServiceFactoriesback to summary
public List<? extends ServiceFactory> getServiceFactories()

Retrieve the list of SSH Service factories.

Returns:List<? extends ServiceFactory>

a list of named Service factories, never null

getTcpForwardingFilterback to summary
public default TcpForwardingFilter getTcpForwardingFilter()
getVersionback to summary
public 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:String

the version of the software

getX11ForwardingFilterback to summary
public default X11ForwardingFilter getX11ForwardingFilter()
resolveAttributeback to summary
public default <T> T resolveAttribute(AttributeRepository.AttributeKey<T> key)

Overrides default org.apache.sshd.common.AttributeRepository.resolveAttribute.

Doc from org.apache.sshd.common.AttributeRepository.resolveAttribute.

Attempts to resolve the associated value by going up the store's hierarchy (if any)

Parameters
<T>
The generic attribute type
key:AttributeRepository.AttributeKey<T>

The key of the attribute; must not be null.

Returns:T

null if there is no value associated with the specified key either in this repository or any of its ancestors (if any available)

Annotations
@Override
resolveAttributeback to summary
public static <T> T resolveAttribute(FactoryManager manager, AttributeRepository.AttributeKey<T> key)
Parameters
<T>
The generic attribute type
manager:FactoryManager

The FactoryManager - ignored if null

key:AttributeRepository.AttributeKey<T>

The attribute key - never null

Returns:T

Associated value - null if not found