Package org.apache.sshd.client
Class ClientBuilder
- All Implemented Interfaces:
Supplier<SshClient>,ObjectBuilder<SshClient>
SshClient builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClientIdentityLoaderstatic final List<ChannelFactory> static final ClientIdentityLoaderstatic final List<CompressionFactory> static final FilePasswordProviderstatic final List<RequestHandler<ConnectionService>> static final HostConfigEntryResolverstatic final KexExtensionHandlerstatic final ServerKeyVerifierstatic final Function<DHFactory, KeyExchangeFactory> protected FilePasswordProviderprotected HostConfigEntryResolverprotected ServerKeyVerifierFields 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 ClientBuilderbuilder()filePasswordProvider(FilePasswordProvider provider) protected ClientBuilderserverKeyVerifier(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, unknownChannelReferenceHandlerMethods inherited from class java.lang.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
-
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:
fillWithDefaultValuesin classBaseBuilder<SshClient,ClientBuilder>
-
build
- Overrides:
buildin classBaseBuilder<SshClient,ClientBuilder>
-
setUpDefaultSignatureFactories
public static List<NamedFactory<Signature>> setUpDefaultSignatureFactories(boolean ignoreUnsupported) -
setUpDefaultCompressionFactories
public static List<NamedFactory<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
-