org.apache.sshd.common
Interface FactoryManager

All Known Subinterfaces:
ClientFactoryManager, ServerFactoryManager
All Known Implementing Classes:
AbstractFactoryManager, SshClient, SshServer

public interface FactoryManager

This interface allows retrieving all the NamedFactory used in the SSH protocol.

Author:
Apache MINA SSHD Project

Field Summary
static java.lang.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 java.lang.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 java.lang.String MAX_PACKET_SIZE
          Key used to retrieve the value of the maximum packet size in the configuration properties map.
static java.lang.String WINDOW_SIZE
          Key used to retrieve the value of the window size in the configuration properties map.
 
Method Summary
 java.util.List<NamedFactory<Channel>> getChannelFactories()
          Retrieve the list of named factories for Channel objects.
 java.util.List<NamedFactory<Cipher>> getCipherFactories()
          Retrieve the list of named factories for Cipher.
 java.util.List<NamedFactory<Compression>> getCompressionFactories()
          Retrieve the list of named factories for Compression.
 java.util.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.
 java.util.List<NamedFactory<Mac>> getMacFactories()
          Retrieve the list of named factories for Mac.
 java.util.Map<java.lang.String,java.lang.String> 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.
 java.util.List<NamedFactory<Signature>> getSignatureFactories()
          Retrieve the list of named factories for Signature.
 java.lang.String getVersion()
          An upper case string identifying the version of the software used on client or server side.
 

Field Detail

WINDOW_SIZE

static final java.lang.String WINDOW_SIZE
Key used to retrieve the value of the window size in the configuration properties map.

See Also:
Constant Field Values

MAX_PACKET_SIZE

static final java.lang.String MAX_PACKET_SIZE
Key used to retrieve the value of the maximum packet size in the configuration properties map.

See Also:
Constant Field Values

MAX_AUTH_REQUESTS

static final java.lang.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.

See Also:
Constant Field Values

AUTH_TIMEOUT

static final java.lang.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.

See Also:
Constant Field Values
Method Detail

getProperties

java.util.Map<java.lang.String,java.lang.String> 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.

Returns:
a valid Map containing configuration values, never null

getVersion

java.lang.String getVersion()
An upper case string identifying the version of the software used on client or server side. This version includes the name of the software and usually looks like: SSHD-1.0

Returns:
the version of the software

getKeyExchangeFactories

java.util.List<NamedFactory<KeyExchange>> getKeyExchangeFactories()
Retrieve the list of named factories for KeyExchange.

Returns:
a list of named KeyExchange factories, never null

getCipherFactories

java.util.List<NamedFactory<Cipher>> getCipherFactories()
Retrieve the list of named factories for Cipher.

Returns:
a list of named Cipher factories, never null

getCompressionFactories

java.util.List<NamedFactory<Compression>> getCompressionFactories()
Retrieve the list of named factories for Compression.

Returns:
a list of named Compression factories, never null

getMacFactories

java.util.List<NamedFactory<Mac>> getMacFactories()
Retrieve the list of named factories for Mac.

Returns:
a list of named Mac factories, never null

getSignatureFactories

java.util.List<NamedFactory<Signature>> getSignatureFactories()
Retrieve the list of named factories for Signature.

Returns:
a list of named Signature factories, never null

getKeyPairProvider

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.

Returns:
the KeyPairProvider, never null

getRandomFactory

Factory<Random> getRandomFactory()
Retrieve the Random factory to be used.

Returns:
the Random factory, never null

getChannelFactories

java.util.List<NamedFactory<Channel>> getChannelFactories()
Retrieve the list of named factories for Channel objects.

Returns:
a list of named Channel factories, never null


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.