T
- Type of AbstractFactoryManager
being builtS
- Type of builderpublic class BaseBuilder<T extends AbstractFactoryManager,S extends BaseBuilder<T,S>> extends Object implements ObjectBuilder<T>
Constructor and Description |
---|
BaseBuilder() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public static final FileSystemFactory DEFAULT_FILE_SYSTEM_FACTORY
public static final ForwardingFilter DEFAULT_FORWARDING_FILTER
public static final ForwarderFactory 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
BuiltinSignatures
according to
sshd_config(5) - HostKeyAlgorithms
HostKeyAlgorithms
recommendationpublic static final UnknownChannelReferenceHandler DEFAULT_UNKNOWN_CHANNEL_REFERENCE_HANDLER
protected Factory<T extends AbstractFactoryManager> factory
protected List<KeyExchangeFactory> keyExchangeFactories
protected List<NamedFactory<Cipher>> cipherFactories
protected List<NamedFactory<Compression>> compressionFactories
protected List<NamedFactory<Mac>> macFactories
protected List<NamedFactory<Signature>> signatureFactories
protected List<ChannelFactory> channelFactories
protected FileSystemFactory fileSystemFactory
protected ForwarderFactory forwarderFactory
protected List<RequestHandler<ConnectionService>> globalRequestHandlers
protected ForwardingFilter forwardingFilter
protected ChannelStreamWriterResolver channelStreamPacketWriterResolver
protected UnknownChannelReferenceHandler unknownChannelReferenceHandler
protected KexExtensionHandler kexExtensionHandler
protected S fillWithDefaultValues()
public S keyExchangeFactories(List<KeyExchangeFactory> keyExchangeFactories)
public S kexExtensionHandler(KexExtensionHandler kexExtensionHandler)
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<ChannelFactory> channelFactories)
public S fileSystemFactory(FileSystemFactory fileSystemFactory)
public S forwardingFilter(ForwardingFilter filter)
public S forwarderFactory(ForwarderFactory forwarderFactory)
public S globalRequestHandlers(List<RequestHandler<ConnectionService>> globalRequestHandlers)
public S channelStreamPacketWriterResolver(ChannelStreamWriterResolver 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 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 Cipher
s
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 Mac
s
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()
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.