public class BaseBuilder<T extends AbstractFactoryManager,S extends BaseBuilder<T,S>> extends Object implements ObjectBuilder<T>
| Constructor and Description |
|---|
BaseBuilder() |
public static final List<NamedFactory<Compression>> DEFAULT_COMPRESSION_FACTORIES
public static final FileSystemFactory DEFAULT_FILE_SYSTEM_FACTORY
public static final ForwardingFilter DEFAULT_FORWARDING_FILTER
public static final TcpipForwarderFactory DEFAULT_FORWARDER_FACTORY
public static final List<BuiltinCiphers> DEFAULT_CIPHERS_PREFERENCE
BuiltinCiphers setup in order of preference
as specified by ssh_config(5)public static final List<BuiltinDHFactories> DEFAULT_KEX_PREFERENCE
BuiltinDHFactories setup in order of preference
as specified by
ssh_config(5)public static final List<BuiltinMacs> DEFAULT_MAC_PREFERENCE
BuiltinMacs setup in order of preference
as specified by
ssh_config(5)public static final List<BuiltinSignatures> DEFAULT_SIGNATURE_PREFERENCE
protected Factory<T extends AbstractFactoryManager> factory
protected List<NamedFactory<KeyExchange>> keyExchangeFactories
protected List<NamedFactory<Cipher>> cipherFactories
protected List<NamedFactory<Compression>> compressionFactories
protected List<NamedFactory<Mac>> macFactories
protected List<NamedFactory<Signature>> signatureFactories
protected List<NamedFactory<Channel>> channelFactories
protected FileSystemFactory fileSystemFactory
protected TcpipForwarderFactory tcpipForwarderFactory
protected List<RequestHandler<ConnectionService>> globalRequestHandlers
protected ForwardingFilter forwardingFilter
protected S fillWithDefaultValues()
public S keyExchangeFactories(List<NamedFactory<KeyExchange>> keyExchangeFactories)
public S signatureFactories(List<NamedFactory<Signature>> signatureFactories)
public S cipherFactories(List<NamedFactory<Cipher>> cipherFactories)
public S compressionFactories(List<NamedFactory<Compression>> compressionFactories)
public S macFactories(List<NamedFactory<Mac>> macFactories)
public S channelFactories(List<NamedFactory<Channel>> channelFactories)
public S fileSystemFactory(FileSystemFactory fileSystemFactory)
public S forwardingFilter(ForwardingFilter filter)
public S tcpipForwarderFactory(TcpipForwarderFactory tcpipForwarderFactory)
public S globalRequestHandlers(List<RequestHandler<ConnectionService>> globalRequestHandlers)
public T build(boolean isFillWithDefaultValues)
public T build()
build in interface ObjectBuilder<T extends AbstractFactoryManager>protected S me()
public static List<NamedFactory<Cipher>> setUpDefaultCiphers(boolean ignoreUnsupported)
ignoreUnsupported - If true then all the default
ciphers are included, regardless of whether they are currently
supported by the JCE. Otherwise, only the supported ones out of the
list are includedList of the default NamedFactory
instances of the Ciphers according to the preference
order defined by DEFAULT_CIPHERS_PREFERENCE.
Note: the list may be filtered to exclude unsupported JCE
ciphers according to the ignoreUnsupported parameterBuiltinCiphers.isSupported()public static List<NamedFactory<Mac>> setUpDefaultMacs(boolean ignoreUnsupported)
ignoreUnsupported - If true all the available built-in
Mac factories are added, otherwise only those that are supported
by the current JDK setupList of the default NamedFactory
instances of the Macs according to the preference
order defined by DEFAULT_MAC_PREFERENCE.
Note: the list may be filtered to exclude unsupported JCE
MACs according to the ignoreUnsupported parameterBuiltinMacs.isSupported()public static List<NamedFactory<Signature>> setUpDefaultSignatures(boolean ignoreUnsupported)
ignoreUnsupported - If true all the available built-in
Signature factories are added, otherwise only those that are supported
by the current JDK setupList of the default NamedFactory
instances of the Signatures according to the preference
order defined by DEFAULT_SIGNATURE_PREFERENCE.
Note: the list may be filtered to exclude unsupported JCE
signatures according to the ignoreUnsupported parameterBuiltinSignatures.isSupported()Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.