Package org.apache.sshd.client
Class ClientBuilder
- All Implemented Interfaces:
Supplier<SshClient>
,ObjectBuilder<SshClient>
SshClient builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClientIdentityLoader
static final List<ChannelFactory>
static final ClientIdentityLoader
static final List<CompressionFactory>
static final FilePasswordProvider
static final List<RequestHandler<ConnectionService>>
static final HostConfigEntryResolver
static final KexExtensionHandler
static final ServerKeyVerifier
static final Function<DHFactory,
KeyExchangeFactory> protected FilePasswordProvider
protected HostConfigEntryResolver
protected ServerKeyVerifier
Fields inherited from class org.apache.sshd.common.BaseBuilder
channelFactories, channelStreamPacketWriterResolver, cipherFactories, compressionFactories, DEFAULT_CIPHERS_PREFERENCE, DEFAULT_FILE_SYSTEM_FACTORY, DEFAULT_FORWARDER_FACTORY, DEFAULT_FORWARDING_FILTER, DEFAULT_KEX_PREFERENCE, DEFAULT_MAC_PREFERENCE, DEFAULT_SIGNATURE_PREFERENCE, DEFAULT_UNKNOWN_CHANNEL_REFERENCE_HANDLER, factory, fileSystemFactory, forwarderFactory, forwardingFilter, globalRequestHandlers, kexExtensionHandler, keyExchangeFactories, macFactories, randomFactory, signatureFactories, unknownChannelReferenceHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild
(boolean isFillWithDefaultValues) static ClientBuilder
builder()
filePasswordProvider
(FilePasswordProvider provider) protected ClientBuilder
serverKeyVerifier
(ServerKeyVerifier serverKeyVerifier) static List<NamedFactory<Compression>>
setUpDefaultCompressionFactories
(boolean ignoreUnsupported) static List<KeyExchangeFactory>
setUpDefaultKeyExchanges
(boolean ignoreUnsupported) static List<NamedFactory<Signature>>
setUpDefaultSignatureFactories
(boolean ignoreUnsupported) Methods inherited from class org.apache.sshd.common.BaseBuilder
build, channelFactories, channelStreamPacketWriterResolver, cipherFactories, compressionFactories, factory, fileSystemFactory, forwarderFactory, forwardingFilter, globalRequestHandlers, kexExtensionHandler, keyExchangeFactories, macFactories, me, randomFactory, setUpDefaultCiphers, setUpDefaultMacs, signatureFactories, unknownChannelReferenceHandler
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.util.ObjectBuilder
get
-
Field Details
-
DH2KEX
-
DEFAULT_COMPRESSION_FACTORIES
-
DEFAULT_CHANNEL_FACTORIES
-
DEFAULT_GLOBAL_REQUEST_HANDLERS
-
DEFAULT_SERVER_KEY_VERIFIER
-
DEFAULT_HOST_CONFIG_ENTRY_RESOLVER
-
DEFAULT_CLIENT_IDENTITY_LOADER
-
DEFAULT_FILE_PASSWORD_PROVIDER
-
DEFAULT_KEX_EXTENSION_HANDLER
-
serverKeyVerifier
-
hostConfigEntryResolver
-
clientIdentityLoader
-
filePasswordProvider
-
-
Constructor Details
-
ClientBuilder
public ClientBuilder()
-
-
Method Details
-
serverKeyVerifier
-
hostConfigEntryResolver
-
clientIdentityLoader
-
filePasswordProvider
-
fillWithDefaultValues
- Overrides:
fillWithDefaultValues
in classBaseBuilder<SshClient,
ClientBuilder>
-
build
- Overrides:
build
in classBaseBuilder<SshClient,
ClientBuilder>
-
setUpDefaultSignatureFactories
public static List<NamedFactory<Signature>> setUpDefaultSignatureFactories(boolean ignoreUnsupported) -
setUpDefaultCompressionFactories
public static List<NamedFactory<Compression>> setUpDefaultCompressionFactories(boolean ignoreUnsupported) -
setUpDefaultKeyExchanges
- Parameters:
ignoreUnsupported
- Iftrue
then all the default key exchanges are included, regardless of whether they are currently supported by the JCE. Otherwise, only the supported ones out of the list are included- Returns:
- A
List
of the defaultNamedFactory
instances of theKeyExchange
s according to the preference order defined byBaseBuilder.DEFAULT_KEX_PREFERENCE
. Note: the list may be filtered to exclude unsupported JCE key exchanges according to the ignoreUnsupported parameter - See Also:
-
builder
-