org.apache.sshd.common
Class AbstractFactoryManager

java.lang.Object
  extended by org.apache.sshd.common.AbstractFactoryManager
All Implemented Interfaces:
FactoryManager
Direct Known Subclasses:
SshClient, SshServer

public abstract class AbstractFactoryManager
extends Object
implements FactoryManager

TODO Add javadoc

Author:
Apache MINA SSHD Project

Field Summary
protected  List<NamedFactory<Channel>> channelFactories
           
protected  List<NamedFactory<Cipher>> cipherFactories
           
protected  List<NamedFactory<Compression>> compressionFactories
           
protected  List<NamedFactory<KeyExchange>> keyExchangeFactories
           
protected  KeyPairProvider keyPairProvider
           
protected  List<NamedFactory<Mac>> macFactories
           
protected  Map<String,String> properties
           
protected  Factory<Random> randomFactory
           
protected  List<NamedFactory<Signature>> signatureFactories
           
protected  String version
           
 
Fields inherited from interface org.apache.sshd.common.FactoryManager
DEFAULT_NIO_WORKERS, MAX_PACKET_SIZE, NIO_WORKERS, WINDOW_SIZE
 
Constructor Summary
protected AbstractFactoryManager()
           
 
Method Summary
 List<NamedFactory<Channel>> getChannelFactories()
          Retrieve the list of named factories for Channel objects.
 List<NamedFactory<Cipher>> getCipherFactories()
          Retrieve the list of named factories for Cipher.
 List<NamedFactory<Compression>> getCompressionFactories()
          Retrieve the list of named factories for Compression.
 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.
 List<NamedFactory<Mac>> getMacFactories()
          Retrieve the list of named factories for Mac.
 int getNioWorkers()
           
 Map<String,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.
 List<NamedFactory<Signature>> getSignatureFactories()
          Retrieve the list of named factories for Signature.
 String getVersion()
          An upper case string identifying the version of the software used on client or server side.
protected  void loadVersion()
           
 void setChannelFactories(List<NamedFactory<Channel>> channelFactories)
           
 void setCipherFactories(List<NamedFactory<Cipher>> cipherFactories)
           
 void setCompressionFactories(List<NamedFactory<Compression>> compressionFactories)
           
 void setKeyExchangeFactories(List<NamedFactory<KeyExchange>> keyExchangeFactories)
           
 void setKeyPairProvider(KeyPairProvider keyPairProvider)
           
 void setMacFactories(List<NamedFactory<Mac>> macFactories)
           
 void setNioWorkers(int nioWorkers)
           
 void setProperties(Map<String,String> properties)
           
 void setRandomFactory(Factory<Random> randomFactory)
           
 void setSignatureFactories(List<NamedFactory<Signature>> signatureFactories)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

properties

protected Map<String,String> properties

keyExchangeFactories

protected List<NamedFactory<KeyExchange>> keyExchangeFactories

cipherFactories

protected List<NamedFactory<Cipher>> cipherFactories

compressionFactories

protected List<NamedFactory<Compression>> compressionFactories

macFactories

protected List<NamedFactory<Mac>> macFactories

signatureFactories

protected List<NamedFactory<Signature>> signatureFactories

randomFactory

protected Factory<Random> randomFactory

keyPairProvider

protected KeyPairProvider keyPairProvider

version

protected String version

channelFactories

protected List<NamedFactory<Channel>> channelFactories
Constructor Detail

AbstractFactoryManager

protected AbstractFactoryManager()
Method Detail

getKeyExchangeFactories

public List<NamedFactory<KeyExchange>> getKeyExchangeFactories()
Description copied from interface: FactoryManager
Retrieve the list of named factories for KeyExchange.

Specified by:
getKeyExchangeFactories in interface FactoryManager
Returns:
a list of named KeyExchange factories, never null

setKeyExchangeFactories

public void setKeyExchangeFactories(List<NamedFactory<KeyExchange>> keyExchangeFactories)

getCipherFactories

public List<NamedFactory<Cipher>> getCipherFactories()
Description copied from interface: FactoryManager
Retrieve the list of named factories for Cipher.

Specified by:
getCipherFactories in interface FactoryManager
Returns:
a list of named Cipher factories, never null

setCipherFactories

public void setCipherFactories(List<NamedFactory<Cipher>> cipherFactories)

getCompressionFactories

public List<NamedFactory<Compression>> getCompressionFactories()
Description copied from interface: FactoryManager
Retrieve the list of named factories for Compression.

Specified by:
getCompressionFactories in interface FactoryManager
Returns:
a list of named Compression factories, never null

setCompressionFactories

public void setCompressionFactories(List<NamedFactory<Compression>> compressionFactories)

getMacFactories

public List<NamedFactory<Mac>> getMacFactories()
Description copied from interface: FactoryManager
Retrieve the list of named factories for Mac.

Specified by:
getMacFactories in interface FactoryManager
Returns:
a list of named Mac factories, never null

setMacFactories

public void setMacFactories(List<NamedFactory<Mac>> macFactories)

getSignatureFactories

public List<NamedFactory<Signature>> getSignatureFactories()
Description copied from interface: FactoryManager
Retrieve the list of named factories for Signature.

Specified by:
getSignatureFactories in interface FactoryManager
Returns:
a list of named Signature factories, never null

setSignatureFactories

public void setSignatureFactories(List<NamedFactory<Signature>> signatureFactories)

getRandomFactory

public Factory<Random> getRandomFactory()
Description copied from interface: FactoryManager
Retrieve the Random factory to be used.

Specified by:
getRandomFactory in interface FactoryManager
Returns:
the Random factory, never null

setRandomFactory

public void setRandomFactory(Factory<Random> randomFactory)

getKeyPairProvider

public KeyPairProvider getKeyPairProvider()
Description copied from interface: FactoryManager
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.

Specified by:
getKeyPairProvider in interface FactoryManager
Returns:
the KeyPairProvider, never null

setKeyPairProvider

public void setKeyPairProvider(KeyPairProvider keyPairProvider)

getProperties

public Map<String,String> getProperties()
Description copied from interface: FactoryManager
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.

Specified by:
getProperties in interface FactoryManager
Returns:
a valid Map containing configuration values, never null

setProperties

public void setProperties(Map<String,String> properties)

getVersion

public String getVersion()
Description copied from interface: FactoryManager
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

Specified by:
getVersion in interface FactoryManager
Returns:
the version of the software

loadVersion

protected void loadVersion()

getChannelFactories

public List<NamedFactory<Channel>> getChannelFactories()
Description copied from interface: FactoryManager
Retrieve the list of named factories for Channel objects.

Specified by:
getChannelFactories in interface FactoryManager
Returns:
a list of named Channel factories, never null

setChannelFactories

public void setChannelFactories(List<NamedFactory<Channel>> channelFactories)

getNioWorkers

public int getNioWorkers()

setNioWorkers

public void setNioWorkers(int nioWorkers)


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.