Package org.apache.sshd.common.kex
Class AbstractKexFactoryManager
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.util.closeable.IoBaseCloseable
-
- org.apache.sshd.common.util.closeable.AbstractCloseable
-
- org.apache.sshd.common.util.closeable.AbstractInnerCloseable
-
- org.apache.sshd.common.kex.AbstractKexFactoryManager
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.nio.channels.Channel
,Closeable
,KexExtensionHandlerManager
,KexFactoryManager
,SignatureFactoriesHolder
,SignatureFactoriesManager
- Direct Known Subclasses:
AbstractFactoryManager
,SessionHelper
public abstract class AbstractKexFactoryManager extends AbstractInnerCloseable implements KexFactoryManager
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
AbstractCloseable.State
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<NamedFactory<Cipher>>
cipherFactories
private java.util.List<NamedFactory<Compression>>
compressionFactories
private KexFactoryManager
delegate
private KexExtensionHandler
kexExtensionHandler
private java.util.List<KeyExchangeFactory>
keyExchangeFactories
private java.util.List<NamedFactory<Mac>>
macFactories
private java.util.List<NamedFactory<Signature>>
signatureFactories
-
Fields inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
closeFuture, futureLock, state
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractKexFactoryManager()
protected
AbstractKexFactoryManager(KexFactoryManager delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<NamedFactory<Cipher>>
getCipherFactories()
Retrieve the list of named factories forCipher
.java.util.List<NamedFactory<Compression>>
getCompressionFactories()
Retrieve the list of named factories forCompression
.protected KexFactoryManager
getDelegate()
KexExtensionHandler
getKexExtensionHandler()
java.util.List<KeyExchangeFactory>
getKeyExchangeFactories()
Retrieve the list of named factories forKeyExchange
.java.util.List<NamedFactory<Mac>>
getMacFactories()
Retrieve the list of named factories forMac
.java.util.List<NamedFactory<Signature>>
getSignatureFactories()
protected <V,C extends java.util.Collection<V>>
CresolveEffectiveFactories(C local, C inherited)
protected <V> V
resolveEffectiveProvider(java.lang.Class<V> providerType, V local, V inherited)
void
setCipherFactories(java.util.List<NamedFactory<Cipher>> cipherFactories)
void
setCompressionFactories(java.util.List<NamedFactory<Compression>> compressionFactories)
void
setKexExtensionHandler(KexExtensionHandler kexExtensionHandler)
void
setKeyExchangeFactories(java.util.List<KeyExchangeFactory> keyExchangeFactories)
void
setMacFactories(java.util.List<NamedFactory<Mac>> macFactories)
void
setSignatureFactories(java.util.List<NamedFactory<Signature>> signatureFactories)
-
Methods inherited from class org.apache.sshd.common.util.closeable.AbstractInnerCloseable
doCloseGracefully, doCloseImmediately, getInnerCloseable
-
Methods inherited from class org.apache.sshd.common.util.closeable.AbstractCloseable
addCloseFutureListener, builder, close, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListener
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.kex.KexFactoryManager
getCipherFactoriesNameList, getCipherFactoriesNames, getCompressionFactoriesNameList, getCompressionFactoriesNames, getMacFactoriesNameList, getMacFactoriesNames, setCipherFactoriesNameList, setCipherFactoriesNames, setCipherFactoriesNames, setCompressionFactoriesNameList, setCompressionFactoriesNames, setCompressionFactoriesNames, setMacFactoriesNameList, setMacFactoriesNames, setMacFactoriesNames
-
Methods inherited from interface org.apache.sshd.common.signature.SignatureFactoriesHolder
getSignatureFactoriesNameList, getSignatureFactoriesNames
-
Methods inherited from interface org.apache.sshd.common.signature.SignatureFactoriesManager
setSignatureFactoriesNameList, setSignatureFactoriesNames, setSignatureFactoriesNames
-
-
-
-
Field Detail
-
delegate
private final KexFactoryManager delegate
-
keyExchangeFactories
private java.util.List<KeyExchangeFactory> keyExchangeFactories
-
cipherFactories
private java.util.List<NamedFactory<Cipher>> cipherFactories
-
compressionFactories
private java.util.List<NamedFactory<Compression>> compressionFactories
-
macFactories
private java.util.List<NamedFactory<Mac>> macFactories
-
signatureFactories
private java.util.List<NamedFactory<Signature>> signatureFactories
-
kexExtensionHandler
private KexExtensionHandler kexExtensionHandler
-
-
Constructor Detail
-
AbstractKexFactoryManager
protected AbstractKexFactoryManager()
-
AbstractKexFactoryManager
protected AbstractKexFactoryManager(KexFactoryManager delegate)
-
-
Method Detail
-
getDelegate
protected KexFactoryManager getDelegate()
-
getKeyExchangeFactories
public java.util.List<KeyExchangeFactory> getKeyExchangeFactories()
Description copied from interface:KexFactoryManager
Retrieve the list of named factories forKeyExchange
.- Specified by:
getKeyExchangeFactories
in interfaceKexFactoryManager
- Returns:
- a list of named
KeyExchange
factories, nevernull
-
setKeyExchangeFactories
public void setKeyExchangeFactories(java.util.List<KeyExchangeFactory> keyExchangeFactories)
- Specified by:
setKeyExchangeFactories
in interfaceKexFactoryManager
-
getCipherFactories
public java.util.List<NamedFactory<Cipher>> getCipherFactories()
Description copied from interface:KexFactoryManager
Retrieve the list of named factories forCipher
.- Specified by:
getCipherFactories
in interfaceKexFactoryManager
- Returns:
- a list of named
Cipher
factories, nevernull
-
setCipherFactories
public void setCipherFactories(java.util.List<NamedFactory<Cipher>> cipherFactories)
- Specified by:
setCipherFactories
in interfaceKexFactoryManager
-
getCompressionFactories
public java.util.List<NamedFactory<Compression>> getCompressionFactories()
Description copied from interface:KexFactoryManager
Retrieve the list of named factories forCompression
.- Specified by:
getCompressionFactories
in interfaceKexFactoryManager
- Returns:
- a list of named
Compression
factories, nevernull
-
setCompressionFactories
public void setCompressionFactories(java.util.List<NamedFactory<Compression>> compressionFactories)
- Specified by:
setCompressionFactories
in interfaceKexFactoryManager
-
getMacFactories
public java.util.List<NamedFactory<Mac>> getMacFactories()
Description copied from interface:KexFactoryManager
Retrieve the list of named factories forMac
.- Specified by:
getMacFactories
in interfaceKexFactoryManager
- Returns:
- a list of named
Mac
factories, nevernull
-
setMacFactories
public void setMacFactories(java.util.List<NamedFactory<Mac>> macFactories)
- Specified by:
setMacFactories
in interfaceKexFactoryManager
-
getSignatureFactories
public java.util.List<NamedFactory<Signature>> getSignatureFactories()
- Specified by:
getSignatureFactories
in interfaceSignatureFactoriesHolder
- Returns:
- The list of named
Signature
factories
-
setSignatureFactories
public void setSignatureFactories(java.util.List<NamedFactory<Signature>> signatureFactories)
- Specified by:
setSignatureFactories
in interfaceSignatureFactoriesManager
-
getKexExtensionHandler
public KexExtensionHandler getKexExtensionHandler()
- Specified by:
getKexExtensionHandler
in interfaceKexExtensionHandlerManager
-
setKexExtensionHandler
public void setKexExtensionHandler(KexExtensionHandler kexExtensionHandler)
- Specified by:
setKexExtensionHandler
in interfaceKexExtensionHandlerManager
-
resolveEffectiveFactories
protected <V,C extends java.util.Collection<V>> C resolveEffectiveFactories(C local, C inherited)
-
resolveEffectiveProvider
protected <V> V resolveEffectiveProvider(java.lang.Class<V> providerType, V local, V inherited)
-
-