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 ForwardingFilterFactory 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
public static final UnknownChannelReferenceHandler DEFAULT_UNKNOWN_CHANNEL_REFERENCE_HANDLER
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 ForwardingFilterFactory forwarderFactory
protected List<RequestHandler<ConnectionService>> globalRequestHandlers
protected ForwardingFilter forwardingFilter
protected ChannelStreamPacketWriterResolver channelStreamPacketWriterResolver
protected UnknownChannelReferenceHandler unknownChannelReferenceHandler
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 forwarderFactory(ForwardingFilterFactory forwarderFactory)
public S globalRequestHandlers(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 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()
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 Signature
s 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–2022 The Apache Software Foundation. All rights reserved.