Class ClientBuilder

All Implemented Interfaces:
Supplier<SshClient>, org.apache.sshd.common.util.ObjectBuilder<SshClient>

public class ClientBuilder extends BaseBuilder<SshClient, ClientBuilder>
SshClient builder
  • Field Details

    • DH2KEX

      public static final Function<DHFactory, KeyExchangeFactory> DH2KEX
    • DEFAULT_COMPRESSION_FACTORIES

      public static final List<org.apache.sshd.common.compression.CompressionFactory> DEFAULT_COMPRESSION_FACTORIES
    • DEFAULT_CHANNEL_FACTORIES

      public static final List<ChannelFactory> DEFAULT_CHANNEL_FACTORIES
    • DEFAULT_GLOBAL_REQUEST_HANDLERS

      public static final List<RequestHandler<ConnectionService>> DEFAULT_GLOBAL_REQUEST_HANDLERS
    • DEFAULT_SERVER_KEY_VERIFIER

      public static final ServerKeyVerifier 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

      public static final KexExtensionHandler DEFAULT_KEX_EXTENSION_HANDLER
    • proxyDataFactory

      protected ProxyDataFactory proxyDataFactory
    • serverKeyVerifier

      protected ServerKeyVerifier serverKeyVerifier
    • hostConfigEntryResolver

      protected org.apache.sshd.client.config.hosts.HostConfigEntryResolver hostConfigEntryResolver
    • newHostKeysHandler

      protected NewHostKeysHandler 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

      public ClientBuilder serverKeyVerifier(ServerKeyVerifier serverKeyVerifier)
    • proxyDataFactory

      public ClientBuilder proxyDataFactory(ProxyDataFactory proxyDataFactory)
    • hostConfigEntryResolver

      public ClientBuilder hostConfigEntryResolver(org.apache.sshd.client.config.hosts.HostConfigEntryResolver resolver)
    • newHostKeysHandler

      public ClientBuilder newHostKeysHandler(NewHostKeysHandler handler)
    • 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

      protected ClientBuilder fillWithDefaultValues()
      Overrides:
      fillWithDefaultValues in class BaseBuilder<SshClient, ClientBuilder>
    • build

      public SshClient build(boolean isFillWithDefaultValues)
      Overrides:
      build in class BaseBuilder<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

      public static List<KeyExchangeFactory> setUpDefaultKeyExchanges(boolean ignoreUnsupported)
      Parameters:
      ignoreUnsupported - If true 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 default NamedFactory instances of the KeyExchanges according to the preference order defined by BaseBuilder.DEFAULT_KEX_PREFERENCE. Note: the list may be filtered to exclude unsupported JCE key exchanges according to the ignoreUnsupported parameter
      See Also:
    • builder

      public static ClientBuilder builder()