T - Type of AbstractFactoryManager being builtS - Type of builderpublic class BaseBuilder<T extends AbstractFactoryManager,S extends BaseBuilder<T,S>> extends java.lang.Object implements ObjectBuilder<T>
| Constructor and Description |
|---|
BaseBuilder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic static final FileSystemFactory DEFAULT_FILE_SYSTEM_FACTORY
public static final ForwardingFilter DEFAULT_FORWARDING_FILTER
public static final ForwardingFilterFactory DEFAULT_FORWARDER_FACTORY
public static final java.util.List<BuiltinCiphers> DEFAULT_CIPHERS_PREFERENCE
BuiltinCiphers setup in order of preference
as specified by ssh_config(5)public static final java.util.List<BuiltinDHFactories> DEFAULT_KEX_PREFERENCE
BuiltinDHFactories setup in order of preference
as specified by
ssh_config(5)public static final java.util.List<BuiltinMacs> DEFAULT_MAC_PREFERENCE
BuiltinMacs setup in order of preference
as specified by
ssh_config(5)public static final java.util.List<BuiltinSignatures> DEFAULT_SIGNATURE_PREFERENCE
public static final UnknownChannelReferenceHandler DEFAULT_UNKNOWN_CHANNEL_REFERENCE_HANDLER
protected Factory<T extends AbstractFactoryManager> factory
protected java.util.List<NamedFactory<KeyExchange>> keyExchangeFactories
protected java.util.List<NamedFactory<Cipher>> cipherFactories
protected java.util.List<NamedFactory<Compression>> compressionFactories
protected java.util.List<NamedFactory<Mac>> macFactories
protected java.util.List<NamedFactory<Signature>> signatureFactories
protected java.util.List<NamedFactory<Channel>> channelFactories
protected FileSystemFactory fileSystemFactory
protected ForwardingFilterFactory forwarderFactory
protected java.util.List<RequestHandler<ConnectionService>> globalRequestHandlers
protected ForwardingFilter forwardingFilter
protected ChannelStreamPacketWriterResolver channelStreamPacketWriterResolver
protected UnknownChannelReferenceHandler unknownChannelReferenceHandler
protected S fillWithDefaultValues()
public S keyExchangeFactories(java.util.List<NamedFactory<KeyExchange>> keyExchangeFactories)
public S signatureFactories(java.util.List<NamedFactory<Signature>> signatureFactories)
public S cipherFactories(java.util.List<NamedFactory<Cipher>> cipherFactories)
public S compressionFactories(java.util.List<NamedFactory<Compression>> compressionFactories)
public S macFactories(java.util.List<NamedFactory<Mac>> macFactories)
public S channelFactories(java.util.List<NamedFactory<Channel>> channelFactories)
public S fileSystemFactory(FileSystemFactory fileSystemFactory)
public S forwardingFilter(ForwardingFilter filter)
public S forwarderFactory(ForwardingFilterFactory forwarderFactory)
public S globalRequestHandlers(java.util.List<RequestHandler<ConnectionService>> globalRequestHandlers)
public S channelStreamPacketWriterResolver(ChannelStreamPacketWriterResolver resolver)
public S unknownChannelReferenceHandler(UnknownChannelReferenceHandler handler)
public T build(boolean isFillWithDefaultValues)
public T build()
build in interface ObjectBuilder<T extends AbstractFactoryManager>protected S me()
public static java.util.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 java.util.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 java.util.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()