Class ClientBuilder
- All Implemented Interfaces:
Supplier<SshClient>, org.apache.sshd.common.util.ObjectBuilder<SshClient>
SshClient builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.sshd.client.config.keys.ClientIdentityLoaderstatic final List<ChannelFactory> static final org.apache.sshd.client.config.keys.ClientIdentityLoaderstatic final List<org.apache.sshd.common.compression.CompressionFactory> static final org.apache.sshd.common.config.keys.FilePasswordProviderstatic final List<RequestHandler<ConnectionService>> static final org.apache.sshd.client.config.hosts.HostConfigEntryResolverstatic final KexExtensionHandlerstatic final ServerKeyVerifierstatic final Function<DHFactory, KeyExchangeFactory> protected org.apache.sshd.common.config.keys.FilePasswordProviderprotected org.apache.sshd.client.config.hosts.HostConfigEntryResolverprotected NewHostKeysHandlerprotected ProxyDataFactoryprotected ServerKeyVerifierFields inherited from class 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 ClientBuilderbuilder()clientIdentityLoader(org.apache.sshd.client.config.keys.ClientIdentityLoader loader) filePasswordProvider(org.apache.sshd.common.config.keys.FilePasswordProvider provider) protected ClientBuilderhostConfigEntryResolver(org.apache.sshd.client.config.hosts.HostConfigEntryResolver resolver) newHostKeysHandler(NewHostKeysHandler handler) proxyDataFactory(ProxyDataFactory proxyDataFactory) serverKeyVerifier(ServerKeyVerifier serverKeyVerifier) static List<org.apache.sshd.common.NamedFactory<org.apache.sshd.common.compression.Compression>> setUpDefaultCompressionFactories(boolean ignoreUnsupported) static List<KeyExchangeFactory> setUpDefaultKeyExchanges(boolean ignoreUnsupported) static List<org.apache.sshd.common.NamedFactory<org.apache.sshd.common.signature.Signature>> setUpDefaultSignatureFactories(boolean ignoreUnsupported) Methods inherited from class BaseBuilder
build, channelFactories, channelStreamPacketWriterResolver, cipherFactories, compressionFactories, factory, fileSystemFactory, forwarderFactory, forwardingFilter, globalRequestHandlers, kexExtensionHandler, keyExchangeFactories, macFactories, me, randomFactory, setUpDefaultCiphers, setUpDefaultMacs, signatureFactories, unknownChannelReferenceHandlerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.util.ObjectBuilder
get
-
Field Details
-
DH2KEX
-
DEFAULT_COMPRESSION_FACTORIES
public static final List<org.apache.sshd.common.compression.CompressionFactory> DEFAULT_COMPRESSION_FACTORIES -
DEFAULT_CHANNEL_FACTORIES
-
DEFAULT_GLOBAL_REQUEST_HANDLERS
-
DEFAULT_SERVER_KEY_VERIFIER
-
DEFAULT_HOST_CONFIG_ENTRY_RESOLVER
public static final org.apache.sshd.client.config.hosts.HostConfigEntryResolver DEFAULT_HOST_CONFIG_ENTRY_RESOLVER -
DEFAULT_CLIENT_IDENTITY_LOADER
public static final org.apache.sshd.client.config.keys.ClientIdentityLoader DEFAULT_CLIENT_IDENTITY_LOADER -
DEFAULT_FILE_PASSWORD_PROVIDER
public static final org.apache.sshd.common.config.keys.FilePasswordProvider DEFAULT_FILE_PASSWORD_PROVIDER -
DEFAULT_KEX_EXTENSION_HANDLER
-
proxyDataFactory
-
serverKeyVerifier
-
hostConfigEntryResolver
protected org.apache.sshd.client.config.hosts.HostConfigEntryResolver hostConfigEntryResolver -
newHostKeysHandler
-
clientIdentityLoader
protected org.apache.sshd.client.config.keys.ClientIdentityLoader clientIdentityLoader -
filePasswordProvider
protected org.apache.sshd.common.config.keys.FilePasswordProvider filePasswordProvider
-
-
Constructor Details
-
ClientBuilder
public ClientBuilder()
-
-
Method Details
-
serverKeyVerifier
-
proxyDataFactory
-
hostConfigEntryResolver
public ClientBuilder hostConfigEntryResolver(org.apache.sshd.client.config.hosts.HostConfigEntryResolver resolver) -
newHostKeysHandler
-
clientIdentityLoader
public ClientBuilder clientIdentityLoader(org.apache.sshd.client.config.keys.ClientIdentityLoader loader) -
filePasswordProvider
public ClientBuilder filePasswordProvider(org.apache.sshd.common.config.keys.FilePasswordProvider provider) -
fillWithDefaultValues
- Overrides:
fillWithDefaultValuesin classBaseBuilder<SshClient, ClientBuilder>
-
build
- Overrides:
buildin classBaseBuilder<SshClient, ClientBuilder>
-
setUpDefaultSignatureFactories
public static List<org.apache.sshd.common.NamedFactory<org.apache.sshd.common.signature.Signature>> setUpDefaultSignatureFactories(boolean ignoreUnsupported) -
setUpDefaultCompressionFactories
public static List<org.apache.sshd.common.NamedFactory<org.apache.sshd.common.compression.Compression>> setUpDefaultCompressionFactories(boolean ignoreUnsupported) -
setUpDefaultKeyExchanges
- Parameters:
ignoreUnsupported- Iftruethen 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
Listof the defaultNamedFactoryinstances of theKeyExchanges 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
-